Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1739858

Summary: SELinux is preventing /usr/lib64/firefox/firefox from setattr access on the directory cache.
Product: Red Hat Enterprise Linux 8 Reporter: Joachim Frieben <jfrieben>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: lvrabec, mmalik, plautrba, ssekidde, zpytela
Target Milestone: rcKeywords: Patch
Target Release: 8.2Flags: pm-rhel: mirror+
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:41:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joachim Frieben 2019-08-11 09:59:29 UTC
SELinux is preventing /usr/lib64/firefox/firefox from setattr access on the directory cache.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that firefox should be allowed setattr access on the cache directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'firefox' --raw | audit2allow -M my-firefox
# semodule -X 300 -i my-firefox.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_web_client_t:s0:
                              c379,c532
Target Context                system_u:object_r:lib_t:s0
Target Objects                cache [ dir ]
Source                        firefox
Source Path                   /usr/lib64/firefox/firefox
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           firefox-60.8.0-1.el8_0.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-61.el8_0.1.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux noname 4.18.0-80.7.2.el8_0.x86_64 #1 SMP Fri
                              Jul 26 10:48:21 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-08-11 11:39:15 CEST
Last Seen                     2019-08-11 11:39:15 CEST
Local ID                      6d98138a-d16c-4cba-aaf3-55cb1c750660

Raw Audit Messages
type=AVC msg=audit(1565516355.186:4400): avc:  denied  { setattr } for  pid=12127 comm="firefox" name="cache" dev="dm-0" ino=25893898 scontext=unconfined_u:unconfined_r:sandbox_web_client_t:s0:c379,c532 tcontext=system_u:object_r:lib_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1565516355.186:4400): arch=x86_64 syscall=chmod success=no exit=EACCES a0=7f72a0281600 a1=1ed a2=ffffffffffffff58 a3=7f72d2c45dd7 items=0 ppid=12125 pid=12127 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=firefox exe=/usr/lib64/firefox/firefox subj=unconfined_u:unconfined_r:sandbox_web_client_t:s0:c379,c532 key=(null)

Hash: firefox,sandbox_web_client_t,lib_t,dir,setattr

Comment 1 Lukas Vrabec 2019-08-12 13:12:34 UTC
Hi Joachim, 

Does it breaks firefox under SELinux sandbox and you just see this SELinux denial or it breaks firefox? 

THanks,
Lukas.

Comment 2 Joachim Frieben 2019-08-13 15:55:17 UTC
Fire
fox is usable despite the various SELinux AVCs.

Comment 8 errata-xmlrpc 2020-04-28 16:41:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1773