[selinux-policy] Make sure /etc/passwd and /etc/group properly labeled

Daniel J Walsh dwalsh at fedoraproject.org
Thu Jan 26 22:45:18 UTC 2012


commit f53135cd92bb0a014cf75e09887d119d17e37cb6
Author: Dan Walsh <dwalsh at redhat.com>
Date:   Thu Jan 26 17:45:12 2012 -0500

    Make sure /etc/passwd and /etc/group properly labeled

 selinux-policy.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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;
 


More information about the scm-commits mailing list