Bug 968997

Summary: SELinux is preventing /opt/google/chrome/nacl_helper_bootstrap from 'search' accesses on the directory fdinfo.
Product: [Fedora] Fedora Reporter: roytest001 <xxjbs001>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, fadilshamirkhan, mgrepl, xxjbs001
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:13ce744affeb10bb37b9a61e2a021646e0ebb7ae2af7e211f1d931d8546cab9e
Fixed In Version: selinux-policy-3.11.1-98.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 00:38:36 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 roytest001 2013-05-30 12:41:48 UTC
Description of problem:
SELinux is preventing /opt/google/chrome/nacl_helper_bootstrap from 'search' accesses on the directory fdinfo.

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

If you believe that nacl_helper_bootstrap should be allowed search access on the fdinfo 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:
# grep nacl_helper_boo /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:chrome_sandbox_nacl_t:s0
                              -s0:c0.c1023
Target Context                unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
                              0.c1023
Target Objects                fdinfo [ dir ]
Source                        nacl_helper_boo
Source Path                   /opt/google/chrome/nacl_helper_bootstrap
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-chrome-stable-27.0.1453.93-200836.i386
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-96.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.i686 #1 SMP Fri May
                              24 20:35:02 UTC 2013 i686 i686
Alert Count                   2
First Seen                    2013-05-29 13:03:51 EDT
Last Seen                     2013-05-30 08:05:24 EDT
Local ID                      be0d195d-b1d8-4b1a-b47b-d730f367b321

Raw Audit Messages
type=AVC msg=audit(1369915524.509:382): avc:  denied  { search } for  pid=7140 comm="nacl_helper_boo" name="fdinfo" dev="proc" ino=324616 scontext=unconfined_u:unconfined_r:chrome_sandbox_nacl_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tclass=dir


type=SYSCALL msg=audit(1369915524.509:382): arch=i386 syscall=open success=no exit=EACCES a0=b779e104 a1=8000 a2=0 a3=bfa048a8 items=0 ppid=1 pid=7140 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=1 tty=(none) comm=nacl_helper_boo exe=/opt/google/chrome/nacl_helper_bootstrap subj=unconfined_u:unconfined_r:chrome_sandbox_nacl_t:s0-s0:c0.c1023 key=(null)

Hash: nacl_helper_boo,chrome_sandbox_nacl_t,chrome_sandbox_t,dir,search

audit2allow

#============= chrome_sandbox_nacl_t ==============
allow chrome_sandbox_nacl_t chrome_sandbox_t:dir search;

audit2allow -R
require {
	type chrome_sandbox_nacl_t;
	type chrome_sandbox_t;
	class dir search;
}

#============= chrome_sandbox_nacl_t ==============
allow chrome_sandbox_nacl_t chrome_sandbox_t:dir search;


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.i686
type:           libreport

Comment 1 Daniel Walsh 2013-06-03 14:29:27 UTC
commit d4aaa205ef767d3e1ee6e5c8253ff5780ca10141 allows this in git.

Comment 2 Miroslav Grepl 2013-06-04 13:51:26 UTC
Back ported.

Comment 3 Fedora Update System 2013-06-27 13:34:32 UTC
selinux-policy-3.11.1-98.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-98.fc18

Comment 4 Fadil Shamir Khan 2013-06-27 17:43:03 UTC
so how do i fix my issue?

Comment 5 Daniel Walsh 2013-06-27 19:27:25 UTC
Download selinux-policy-3.11.1-98.fc18 or wait for it to show up in updates-testing



yum -y update selinux-policy --enablerepo=updates-testing

Comment 6 Fedora Update System 2013-06-28 06:08:45 UTC
Package selinux-policy-3.11.1-98.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-98.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11859/selinux-policy-3.11.1-98.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-07-25 00:38:36 UTC
selinux-policy-3.11.1-98.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.