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 <jnovy@redhat.com>
This commit is contained in:
parent
c9b634cdd6
commit
757949f15b
|
@ -20,7 +20,7 @@
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
Name: container-selinux
|
Name: container-selinux
|
||||||
Version: 2.206.0
|
Version: 2.206.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: %{git0}
|
URL: %{git0}
|
||||||
Summary: SELinux policies for container runtimes
|
Summary: SELinux policies for container runtimes
|
||||||
|
@ -54,8 +54,20 @@ SELinux policy modules for use with container runtimes.
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit
|
%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
|
sed -i '/user_namespace/d' container.te
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
|
@ -121,6 +133,10 @@ fi
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 24 2023 Jindrich Novy <jnovy@redhat.com> - 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 <jnovy@redhat.com> - 3:2.206.0-1
|
* Wed Mar 22 2023 Jindrich Novy <jnovy@redhat.com> - 3:2.206.0-1
|
||||||
- update to https://github.com/containers/container-selinux/releases/tag/v2.206.0
|
- update to https://github.com/containers/container-selinux/releases/tag/v2.206.0
|
||||||
- Related: #2176063
|
- Related: #2176063
|
||||||
|
|
Loading…
Reference in New Issue