From d5d18f13f7f82002a95cb88af5f700ab80a5084a Mon Sep 17 00:00:00 2001 From: Nikola Knazekova Date: Mon, 2 May 2022 13:59:29 +0200 Subject: [PATCH] Exclude container.if from selinux-policy-devel The container-selinux has been separated from selinux-policy, but selinux-policy still contains the interface in selinux-policy-devel subpackage, which can result in errors like $ make -f /usr/share/selinux/devel/Makefile init_t_audit_control.pp /usr/share/selinux/devel/include/services/container.if:13: Error: duplicate definition of container_runtime_domtrans(). Original definition on 13. These errors are harmless as long as the content is the same, but not packaging the interface in selinux-policy can entirely prevent these errors from appearing. Resolves: rhbz#2055890 --- selinux-policy.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/selinux-policy.spec b/selinux-policy.spec index 87b94ad0..7212cc66 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -139,6 +139,7 @@ and some additional files. %dir %{_datadir}/selinux/devel %dir %{_datadir}/selinux/devel/include %{_datadir}/selinux/devel/include/* +%exclude %{_usr}/share/selinux/devel/include/contrib/container.if %dir %{_datadir}/selinux/devel/html %{_datadir}/selinux/devel/html/*html %{_datadir}/selinux/devel/html/*css