From f53135cd92bb0a014cf75e09887d119d17e37cb6 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Jan 26 2012 22:45:12 +0000 Subject: Make sure /etc/passwd and /etc/group properly labeled --- diff --git a/selinux-policy.spec b/selinux-policy.spec index 70224a6..9abeb77 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -187,7 +187,7 @@ FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \ /usr/sbin/selinuxenabled; \ if [ $? = 0 -a "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.pre ]; then \ /sbin/fixfiles -C ${FILE_CONTEXT}.pre restore; \ - /sbin/restorecon -R /root /var/log /var/run 2> /dev/null; \ + /sbin/restorecon -R /root /var/log /var/run /etc/passwd* /etc/group* 2> /dev/null; \ rm -f ${FILE_CONTEXT}.pre; \ fi;