[selinux-policy/f18: 1/4] Run restorecon on .cache and .config directories in homedir to make sure labels are correct

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 11 17:23:17 UTC 2012


commit 03daf48bab0b28da31d31bbfdd0e8c404e9c57a0
Author: rhatdan <dwalsh at redhat.com>
Date:   Tue Oct 9 13:44:28 2012 -0400

    Run restorecon on .cache and .config directories in homedir to make sure labels are correct

 selinux-policy.spec |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/selinux-policy.spec b/selinux-policy.spec
index 3db9441..33399af 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -227,6 +227,7 @@ if [ $? = 0  -a "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.pre ]; then \
      /sbin/fixfiles -C ${FILE_CONTEXT}.pre restore 2> /dev/null; \
      /sbin/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* 2> /dev/null; \
      rm -f ${FILE_CONTEXT}.pre; \
+     restorecon -R /home/*/.cache /home/*/.config; \
 fi;
 
 %define preInstall() \


More information about the scm-commits mailing list