Related: #2183234 Call restorecon only on existing directory
Fix https://bugzilla.redhat.com/show_bug.cgi?id=2187894
This commit is contained in:
parent
a84638c956
commit
5c8f7e438e
@ -195,8 +195,8 @@ fi
|
||||
# When Firefox is not running, restore SELinux labels for profile files
|
||||
# (rhbz#1731371)
|
||||
if [ $MOZILLA_DOWN -ne 0 ]; then
|
||||
if [ -x $GETENFORCE_FILE ] && [ `$GETENFORCE_FILE` != "Disabled" ]; then
|
||||
(/usr/sbin/restorecon -vr ~/.mozilla/firefox/* &)
|
||||
if [ -x $GETENFORCE_FILE ] && [ `$GETENFORCE_FILE` != "Disabled" ] && [ -d ~/.mozilla/firefox ]; then
|
||||
(/usr/sbin/restorecon -vr ~/.mozilla/firefox &)
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user