From 19cd06ec8a0214a9dc09ca80ae3c757b2b7e248d Mon Sep 17 00:00:00 2001 From: Miroslav Grepl Date: Jun 09 2015 14:43:17 +0000 Subject: 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) --- diff --git a/selinux-policy.spec b/selinux-policy.spec index c01a4fc..ffb34b4 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -19,7 +19,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 3.13.1 -Release: 128%{?dist} +Release: 128.1%{?dist} License: GPLv2+ Group: System Environment/Base Source: serefpolicy-%{version}.tgz @@ -306,7 +306,7 @@ if [ -e /etc/selinux/%2/.rebuild ]; then \ fi; \ [ "${SELINUXTYPE}" == "%2" ] && selinuxenabled && load_policy; \ 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 \ %relabel %2 \ fi;