Hide Forgot
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): firefox-102.7.0-1.el7_9.x86_64 How reproducible: Always Steps to Reproduce: 1. env PATH=/usr/bin firefox 2. 3. Actual results: /usr/bin/firefox: line 198: getenforce: command not found /usr/bin/firefox: line 198: [: !=: unary operator expected Expected results: Not those errors Additional info:
Thank you for the bug report. It will be fixed as part of the Firefox 102.9 update in few weeks.