We need to restore contexts on /etc/passwd*,/etc/group*,/etc/*shadow* during install phase to get proper labeling for these files until selinux-policy pkgs are installed. BZ(1228489)
This commit is contained in:
parent
5bcffd3a3a
commit
19cd06ec8a
@ -19,7 +19,7 @@
|
|||||||
Summary: SELinux policy configuration
|
Summary: SELinux policy configuration
|
||||||
Name: selinux-policy
|
Name: selinux-policy
|
||||||
Version: 3.13.1
|
Version: 3.13.1
|
||||||
Release: 128%{?dist}
|
Release: 128.1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source: serefpolicy-%{version}.tgz
|
Source: serefpolicy-%{version}.tgz
|
||||||
@ -306,7 +306,7 @@ if [ -e /etc/selinux/%2/.rebuild ]; then \
|
|||||||
fi; \
|
fi; \
|
||||||
[ "${SELINUXTYPE}" == "%2" ] && selinuxenabled && load_policy; \
|
[ "${SELINUXTYPE}" == "%2" ] && selinuxenabled && load_policy; \
|
||||||
if [ %1 -eq 1 ]; then \
|
if [ %1 -eq 1 ]; then \
|
||||||
/sbin/restorecon -R /root /var/log /run 2> /dev/null; \
|
/sbin/restorecon -R /root /var/log /run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null; \
|
||||||
else \
|
else \
|
||||||
%relabel %2 \
|
%relabel %2 \
|
||||||
fi;
|
fi;
|
||||||
|
Loading…
Reference in New Issue
Block a user