From 757949f15bb0f07c3ce0125e0390e6c51e16b4be Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Fri, 24 Mar 2023 14:53:35 +0100 Subject: [PATCH] container-selinux-2.206.0-2.el9 - use conditionals from https://github.com/containers/container-selinux/blob/main/container-selinux.spec.rpkg - Related: #2176063 Signed-off-by: Jindrich Novy --- container-selinux.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/container-selinux.spec b/container-selinux.spec index 0403bf5..9bd3404 100644 --- a/container-selinux.spec +++ b/container-selinux.spec @@ -20,7 +20,7 @@ Epoch: 3 Name: container-selinux Version: 2.206.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 URL: %{git0} Summary: SELinux policies for container runtimes @@ -54,8 +54,20 @@ SELinux policy modules for use with container runtimes. %prep %autosetup -Sgit -# Not present on rhel 9 +# Remove some lines for RHEL 8 build +%if ! 0%{?fedora} && 0%{?rhel} <= 8 +sed -i 's/watch watch_reads//' container.if +sed -i '/sysfs_t:dir watch/d' container.te +sed -i '/systemd_chat_resolved/d' container.te +%endif + +sed -i 's/man: install-policy/man:/' Makefile +sed -i 's/install: man/install:/' Makefile + +# https://github.com/containers/container-selinux/issues/203 +%if 0%{?fedora} <= 37 || 0%{?rhel} <= 9 sed -i '/user_namespace/d' container.te +%endif %build make @@ -121,6 +133,10 @@ fi %changelog +* Fri Mar 24 2023 Jindrich Novy - 3:2.206.0-2 +- use conditionals from https://github.com/containers/container-selinux/blob/main/container-selinux.spec.rpkg +- Related: #2176063 + * Wed Mar 22 2023 Jindrich Novy - 3:2.206.0-1 - update to https://github.com/containers/container-selinux/releases/tag/v2.206.0 - Related: #2176063