summaryrefslogtreecommitdiff
path: root/firefox.sh.in
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-10-16 16:49:00 +0200
committerMartin Stransky <stransky@redhat.com>2020-10-16 16:49:00 +0200
commit712997a5f5a6548cd83b103b83b326e24dbcb69f (patch)
treed4ecc2379edd55d3f8211387893f951c4d3cc4c0 /firefox.sh.in
parentActually disable the LTO (diff)
downloadlibrewolf-fedora-ff-712997a5f5a6548cd83b103b83b326e24dbcb69f.tar.gz
librewolf-fedora-ff-712997a5f5a6548cd83b103b83b326e24dbcb69f.tar.bz2
librewolf-fedora-ff-712997a5f5a6548cd83b103b83b326e24dbcb69f.zip
Updated SELinux relabel setup (rhbz#1731371)
Diffstat (limited to 'firefox.sh.in')
-rw-r--r--firefox.sh.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/firefox.sh.in b/firefox.sh.in
index 63c04cc..863ef1f 100644
--- a/firefox.sh.in
+++ b/firefox.sh.in
@@ -65,6 +65,7 @@ MOZ_LANGPACKS_DIR="$MOZ_DIST_BIN/langpacks"
MOZ_EXTENSIONS_PROFILE_DIR="$HOME/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
MOZ_PROGRAM="$MOZ_DIST_BIN/$MOZ_FIREFOX_FILE"
MOZ_LAUNCHER="$MOZ_DIST_BIN/run-mozilla.sh"
+GETENFORCE_FILE="/usr/sbin/getenforce"
##
## Enable Wayland backend?
@@ -182,8 +183,8 @@ fi
# When Firefox is not running, restore SELinux labels for profile files
# (rhbz#1731371)
if [ $MOZILLA_DOWN -ne 0 ]; then
- if [ `getenforce` != "Disabled" ]; then
- restorecon -vr ~/.mozilla/firefox/* &
+ if [ -x $GETENFORCE_FILE ] && [`getenforce` != "Disabled" ]; then
+ (restorecon -vr ~/.mozilla/firefox/* &)
fi
fi
bgstack15