From eb4214a710399d5124f5922a22ef72a6ad676a58 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Tue, 21 Jun 2022 11:20:16 +0200 Subject: Use $GETENFORCE_FILE to call getenforce with full path: rhbz#2091219 --- firefox-mozconfig | 3 ++- firefox.sh.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/firefox-mozconfig b/firefox-mozconfig index 90dfccf..ec288fe 100644 --- a/firefox-mozconfig +++ b/firefox-mozconfig @@ -16,7 +16,8 @@ ac_add_options --with-system-fdk-aac ac_add_options --enable-js-shell ac_add_options --with-unsigned-addon-scopes=app,system ac_add_options --without-sysroot -ac_add_options --without-wasm-sandboxed-libraries +ac_add_options --with-wasm-sandboxed-libraries +ac_add_options --disable-bootstrap export BUILD_OFFICIAL=1 export MOZILLA_OFFICIAL=1 diff --git a/firefox.sh.in b/firefox.sh.in index 76df06b..5fef0b2 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -193,7 +193,7 @@ 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` != "Disabled" ]; then + if [ -x $GETENFORCE_FILE ] && [ `$GETENFORCE_FILE` != "Disabled" ]; then (restorecon -vr ~/.mozilla/firefox/* &) fi fi -- cgit