From 496d853e1c99322482aa83ff3b78dd4ca0eb0b67 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 10 Feb 2023 18:52:46 +0530 Subject: [PATCH] delete systemd_chat_resolved for centos 8 packit builds Signed-off-by: Lokesh Mandvekar --- container-selinux.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/container-selinux.spec b/container-selinux.spec index 5d4d07c..500ac2b 100644 --- a/container-selinux.spec +++ b/container-selinux.spec @@ -56,10 +56,15 @@ SELinux policy modules for use with container runtimes. %prep %autosetup -Sgit %{name}-%{built_tag_strip} # https://github.com/containers/container-selinux/issues/203 -%if 0%{?fedora} <= 37 +%if 0%{?fedora} <= 37 || 0%{?centos} sed -i '/user_namespace/d' container.te %endif +%if 0%{?centos} == 8 +sed -i '/systemd_chat_resolved/d' container.te +%endif + + %build make