RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1468800 - firefox causing multiple issues with selinux
Summary: firefox causing multiple issues with selinux
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: firefox
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Martin Stransky
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-08 05:43 UTC by jigar
Modified: 2021-06-10 12:33 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-13 15:59:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Firefox Backtrace (2.62 KB, text/plain)
2017-07-08 05:43 UTC, jigar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3380471 0 None None None 2018-03-13 20:23:24 UTC

Description jigar 2017-07-08 05:43:24 UTC
Created attachment 1295461 [details]
Firefox Backtrace

Description of problem: Firefox is causing multiple issues with selinux enforcing. It causes firefox to crash and also prevents firefox from printing to file.

Version-Release number of selected component (if applicable): firefox-52.2.0-1

How reproducible: Always

Steps to Reproduce:

Printing Issue:

1. Open firefox
2. On any website, click Ctrl + P to open print dialog
3. Select Print to file 
4. Check if file is created at the said location

Firefox crashing :

Firefox crashes with "Gah. Your tab just crashed" 

( Attaching backtrace )

Actual results: With Selinux enforcing, firefox is crashing and preventing printing to file


Expected results: Firefox should not crash or prevent printing to file


Additional info:

Following workaround makes firefox work as desired :

$ setsebool -P unconfined_mozilla_plugin_transition 0

However, this is unacceptable by customers as production environment is affected and they would not like to disable selinux on it. Also, multiple customers are affected.

Comment 2 Martin Stransky 2017-07-10 08:46:40 UTC
It may be related to multiprocess. I think the customer has enabled e10s, which means that the web content is running in plugin-container which is blocked by SELinux. The plugin-container is also running NPAPI plugins (flash, java...) so that causes the SELinux confusion here.

A quick solution is to disable e10s by setting "browser.tabs.remote.force-disable" to true in about:config or create a .js pref file with this entry at /etc/firefox/pref directory.

See /usr/lib(64)/firefox/browser/defaults/preferences/firefox-redhat-default-prefs.js how the .js pref file looks like.

Comment 4 Wu Siu Wa 2017-07-13 07:19:32 UTC
Hi Martin,

I checked my environment (RHEL7 + firefox-52.2.0-1.el7_3.x86_64) but could not see "browser.tabs.remote.force-disable".(Could not find it in FF45 either.) Is this pref exist in Firefox 45/52?  Or did I miss anything?

Please advise. Thank you!

Comment 5 Martin Stransky 2017-07-13 07:26:01 UTC
Ahh, I see. Then you need to add it, click by right mouse on any entry here and select "New" and "Boolean" and put the name there.

Comment 7 Martin Stransky 2017-07-24 11:48:19 UTC
That comes from project Electrolysis which was introduced at Firefox 52, see https://wiki.mozilla.org/Electrolysis for details.


Note You need to log in before you can comment on or make changes to this bug.