!263 Recovering the SELinux Label

From: @Linux_zhang2024 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2024-11-28 03:14:28 +00:00 committed by Gitee
commit 0c4d5feb2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -12,7 +12,7 @@
Summary: SELinux policy configuration
Name: selinux-policy
Version: 35.5
Release: 22
Release: 23
License: GPLv2+
URL: https://github.com/fedora-selinux/selinux-policy/
@ -410,7 +410,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;
@ -952,6 +952,9 @@ exit 0
%endif
%changelog
* Wed Nov 27 2024 Linux_zhang <zhangruifang@h-partners.com> - 35.5-23
- Recovering the SELinux Label
* Mon Mar 25 2024 gengqihu <gengqihu2@h-partners.com> - 35.5-22
- fix semodule_package fail