container-selinux-2.163.0-2.el9
- add trigger to fix labels in users homedirs, before overlayfs is supported by default for non root users - Related: #1970747 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
parent
87a2a6a906
commit
da8e3e7307
@ -17,10 +17,10 @@
|
|||||||
# Version of SELinux we were using
|
# Version of SELinux we were using
|
||||||
%global selinux_policyver 3.14.3-9.el8
|
%global selinux_policyver 3.14.3-9.el8
|
||||||
|
|
||||||
Epoch: 2
|
Epoch: 3
|
||||||
Name: container-selinux
|
Name: container-selinux
|
||||||
Version: 2.163.0
|
Version: 2.163.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
|
||||||
@ -93,6 +93,12 @@ if [ $1 -eq 0 ]; then
|
|||||||
%selinux_modules_uninstall -s %{selinuxtype} %{modulenames} docker
|
%selinux_modules_uninstall -s %{selinuxtype} %{modulenames} docker
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%triggerpostun -- container-selinux < 3:2.162.1-3
|
||||||
|
if %{_sbindir}/selinuxenabled ; then
|
||||||
|
echo "Fixing Rootless SELinux labels in homedir"
|
||||||
|
%{_sbindir}/restorecon -R /home/*/.local/share/containers/storage/overlay* 2> /dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
%selinux_relabel_post -s %{selinuxtype}
|
||||||
|
|
||||||
@ -106,6 +112,11 @@ fi
|
|||||||
%{_datadir}/containers/selinux/contexts
|
%{_datadir}/containers/selinux/contexts
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 23 2021 Jindrich Novy <jnovy@redhat.com> - 3:2.163.0-2
|
||||||
|
- add trigger to fix labels in users homedirs, before overlayfs
|
||||||
|
is supported by default for non root users
|
||||||
|
- Related: #1970747
|
||||||
|
|
||||||
* Mon Jun 14 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.163.0-1
|
* Mon Jun 14 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.163.0-1
|
||||||
- update to https://github.com/containers/container-selinux/releases/tag/v2.163.0
|
- update to https://github.com/containers/container-selinux/releases/tag/v2.163.0
|
||||||
- Related: #1970747
|
- Related: #1970747
|
||||||
|
Loading…
Reference in New Issue
Block a user