Always run restorecon at install time to make sure key files are labeled correctly

This commit is contained in:
Dan Walsh 2013-02-20 14:13:08 +01:00
parent 5eea0f4403
commit f0628b3cd7
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ if [ $? = 0 -a "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.pre ]; then \
rm -f ${FILE_CONTEXT}.pre; \
/sbin/restorecon -R /home/*/.cache /home/*/.config; \
fi; \
/sbin/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* 2> /dev/null; \
/sbin/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null; \
/sbin/restorecon -R /home/*/.cache /home/*/.config;
%define preInstall() \