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 695366

Summary: AVCs appear when firefox is running in sandbox
Product: Red Hat Enterprise Linux 6 Reporter: Milos Malik <mmalik>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: dwalsh, mgrepl
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-10 10:18:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milos Malik 2011-04-11 13:46:31 UTC
Description of problem:


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.7.19-82.el6.noarch
selinux-policy-doc-3.7.19-82.el6.noarch
selinux-policy-minimum-3.7.19-82.el6.noarch
selinux-policy-mls-3.7.19-82.el6.noarch
selinux-policy-3.7.19-82.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. get a RHEL-6.1 machine
2. create an user (do not use -Z option when running useradd)
3. log into X Windows as this user
4. run terminal
5. run "sandbox -X firefox" in the terminal
6. click File->Quit in firefox menu

Actual results:
----
time->Mon Apr 11 15:40:29 2011
type=SYSCALL msg=audit(1302529229.747:544): arch=40000003 syscall=5 success=no exit=-13 a0=bfa632b0 a1=a0000 a2=0 a3=bfa633a1 items=0 ppid=7556 pid=7578 auid=508 uid=508 gid=509 euid=508 suid=508 fsuid=508 egid=509 sgid=509 fsgid=509 tty=(none) ses=34 comm="firefox" exe="/usr/lib/firefox-3.6/firefox" subj=unconfined_u:unconfined_r:sandbox_x_client_t:s0:c42,c97 key=(null)
type=AVC msg=audit(1302529229.747:544): avc:  denied  { read } for  pid=7578 comm="firefox" name="pulse-shm-3243972631" dev=tmpfs ino=126012 scontext=unconfined_u:unconfined_r:sandbox_x_client_t:s0:c42,c97 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file
----
time->Mon Apr 11 15:40:29 2011
type=SYSCALL msg=audit(1302529229.752:545): arch=40000003 syscall=102 success=no exit=-13 a0=3 a1=aebff0c0 a2=2983400 a3=0 items=0 ppid=7556 pid=7624 auid=508 uid=508 gid=509 euid=508 suid=508 fsuid=508 egid=509 sgid=509 fsgid=509 tty=(none) ses=34 comm="firefox" exe="/usr/lib/firefox-3.6/firefox" subj=unconfined_u:unconfined_r:sandbox_x_client_t:s0:c42,c97 key=(null)
type=AVC msg=audit(1302529229.752:545): avc:  denied  { name_connect } for  pid=7624 comm="firefox" dest=4713 scontext=unconfined_u:unconfined_r:sandbox_x_client_t:s0:c42,c97 tcontext=system_u:object_r:pulseaudio_port_t:s0 tclass=tcp_socket
----

Expected results:
no AVCs

Comment 1 Miroslav Grepl 2011-04-11 14:05:30 UTC
Are you seeing any AVC msgs with

# sandbox -X -t sandbox_web_t firefox

Comment 2 Daniel Walsh 2011-04-11 16:00:33 UTC
We are not allwing sandbox_x_t to connect to pulseaudio.  Currently firefox needs to run in sandbox_web_t.  Milos do you see any value in running firefox without allowing it to connect to the network?