Bug 710056

Summary: Firefox under sandbox & Xulrunner AVC
Product: [Fedora] Fedora Reporter: Jorge Fábregas <jorge.fabregas>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.9.7-44.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-12 11:01:33 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:
Attachments:
Description Flags
Details of AVC none

Description Jorge Fábregas 2011-06-02 11:22:44 UTC
Created attachment 502504 [details]
Details of AVC

Description of problem:
I'm trying to run Firefox under SELinux sandbox with:

sandbox -X -t sandbox_web_t firefox

but it doesn't work: I get an AVC for this (I'm attaching AVC details).

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.9.7-40.fc14.noarch
selinux-policy-3.9.7-40.fc14.noarch
policycoreutils-sandbox-2.0.85-28.fc14.i686


How reproducible:
always

Steps to Reproduce:
1. run:  sandbox -X -t sandbox_web_t firefox
2. you get AVC

  
Actual results:
nothing happens & AVC is shown.

Expected results:
a new window containing Firefox

Additional info:

Initially I tried:

chcon -t bin_t /usr/lib/xulrunner-2/xulrunner

but it didn't work.  I also needed to change the xulrunner-bin label:

chcon -t bin_t /usr/lib/xulrunner-2/xulrunner-bin

After that it works.  I verified that the label change is needed on BOTH files in order to make it work.

I must add that I'm running Firefox & Xulrunner from the REMI repo (a known repo for Firefox for Fedora users who want to run the latest Firefox as the F14 stock version is WAY too old).  Here's the info:

xulrunner-1.9.2.17-2.fc14.i686
firefox-4.0.1-1.fc14.remi.i686

Comment 1 Miroslav Grepl 2011-06-02 11:38:46 UTC
Fixed in selinux-policy-3.9.7-43.fc14

Comment 2 Fedora Update System 2011-08-04 13:58:19 UTC
selinux-policy-3.9.7-44.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14

Comment 3 Fedora Update System 2011-08-05 03:53:29 UTC
Package selinux-policy-3.9.7-44.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-44.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-08-12 11:00:26 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2011-08-12 18:24:55 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.