View Issue Details

IDProjectCategoryView StatusLast Update
0018568CentOS-7firefoxpublic2023-03-24 23:37
Reporterjamesprescott Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version7.9.2009 
Summary0018568: Firefox assumes getenforce is in PATH, generates error if not
DescriptionFirefox assumes that /usr/sbin/getenforce and restorecon are on the user's PATH. If it isn't you get the 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 to this eliminates the problem.

if [ -x $GETENFORCE_FILE ] && [ `$GETENFORCE` != "Disabled" ]; then
     (/usr/sbin/restorecon -vr ~/.mozilla/firefox/* &)
Steps To Reproduceenv PATH=/usr/bin firefox
/usr/bin/firefox: line 198: getenforce: command not found
/usr/bin/firefox: line 198: [: !=: unary operator expected
Additional InformationProblem introduced in firefox-102.5.0-1.el7.centos and continues through firefox-102.8.0-2.el7.centos

Works fine in firefox-91.13.0-1.el7.centos
TagsNo tags attached.
abrt_hash
URL

Activities

ManuelWolfshant

ManuelWolfshant

2023-02-28 22:02

manager   ~0039068

CentOS is a rebuild of the sources used to create RHEL. We do not modify anything except to remove branding and logos. You will need to submit your request to Redhat via bugzilla.redhat.com and if/when RH accepts it and incorporates it into RHEL and releases a patched version, then CentOS will pick it up and rebuild it.
jamesprescott

jamesprescott

2023-03-01 14:25

reporter   ~0039069

OK, thanks.

Redhat has it as 2174241 https://bugzilla.redhat.com/show_bug.cgi?id=2174241
toracat

toracat

2023-03-05 23:37

manager   ~0039072

According to the RHBZ filed by @jamesprescott, the fix will be in firefox 102.9.
toracat

toracat

2023-03-24 23:37

manager   ~0039081

Fixed in firefox 102.9.

Issue History

Date Modified Username Field Change
2023-02-28 21:55 jamesprescott New Issue
2023-02-28 22:02 ManuelWolfshant Note Added: 0039068
2023-03-01 14:25 jamesprescott Note Added: 0039069
2023-03-05 23:37 toracat Note Added: 0039072
2023-03-05 23:38 toracat Status new => confirmed
2023-03-24 23:37 toracat Status confirmed => resolved
2023-03-24 23:37 toracat Resolution open => fixed
2023-03-24 23:37 toracat Note Added: 0039081