Description of problem:
Firefox assumes that /usr/sbin/getenforce and restorecon are on the user's PATH. If it isn't you get errors, but firefox still runs.
The problem is /usr/bin/firefox lines 198-199. It verifies that /usr/sbin/getenforce exists, but then tries to run it without specifying the path. It then tries to run restorecon without a specifying the path.
if [ -x $GETENFORCE_FILE ] && [ `getenforce` != "Disabled" ]; then
(restorecon -vr ~/.mozilla/firefox/* &)
Changing lines as follows is one possible fix.
if [ -x $GETENFORCE_FILE ] && [ `$GETENFORCE` != "Disabled" ]; then
(/usr/sbin/restorecon -vr ~/.mozilla/firefox/* &)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. env PATH=/usr/bin firefox
/usr/bin/firefox: line 198: getenforce: command not found
/usr/bin/firefox: line 198: [: !=: unary operator expected
Not those errors
Thank you for the bug report. It will be fixed as part of the Firefox 102.9 update in few weeks.