Recovering the SELinux Label

This commit is contained in:
Linux_zhang 2024-11-27 19:27:56 +08:00
parent 5b9f77f4d5
commit 83350518b1

View File

@ -12,7 +12,7 @@
Summary: SELinux policy configuration
Name: selinux-policy
Version: 40.7
Release: 3
Release: 4
License: GPLv2+
URL: https://github.com/fedora-selinux/selinux-policy/
@ -201,7 +201,7 @@ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.p
%{_sbindir}/fixfiles -C ${FILE_CONTEXT}.pre restore &> /dev/null > /dev/null; \
rm -f ${FILE_CONTEXT}.pre; \
fi; \
%{_sbindir}/restorecon -R /var/lib/rpm \
%{_sbindir}/restorecon -R /var/lib/rpm /usr/bin /usr/lib /usr/lib64 /usr/sbin \
if %{_sbindir}/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null;then \
continue; \
fi;
@ -743,6 +743,9 @@ exit 0
%endif
%changelog
* Wed Nov 27 2024 Linux_zhang <zhangruifang@h-partners.com> - 40.7-4
- Recovering the SELinux Label
* Tue Nov 05 2024 Linux_zhang <zhangruifang@h-partners.com> - 40.7-3
- Add support for secretmem anon inode