Bug 746850 - SELinux is preventing /opt/google/chrome/chrome from 'execute_no_trans' accesses on the file /opt/google/chrome/nacl_helper_bootstrap.
Summary: SELinux is preventing /opt/google/chrome/chrome from 'execute_no_trans' acces...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d9bcbdea0d9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-18 00:08 UTC by Alena
Modified: 2012-02-10 08:55 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-10 08:55:17 UTC
Type: ---


Attachments (Terms of Use)

Description Alena 2011-10-18 00:08:39 UTC
SELinux is preventing /opt/google/chrome/chrome from 'execute_no_trans' accesses on the file /opt/google/chrome/nacl_helper_bootstrap.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow chrome to have execute_no_trans access on the nacl_helper_bootstrap file
Then you need to change the label on /opt/google/chrome/nacl_helper_bootstrap
Do
# semanage fcontext -a -t FILE_TYPE '/opt/google/chrome/nacl_helper_bootstrap'
where FILE_TYPE is one of the following: textrel_shlib_t, execmem_exec_t, bin_t. 
Then execute: 
restorecon -v '/opt/google/chrome/nacl_helper_bootstrap'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that chrome should be allowed execute_no_trans access on the nacl_helper_bootstrap file 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 chrome /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:usr_t:s0
Target Objects                /opt/google/chrome/nacl_helper_bootstrap [ file ]
Source                        chrome
Source Path                   /opt/google/chrome/chrome
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           google-chrome-unstable-16.0.904.0-104662
Target RPM Packages           google-chrome-unstable-16.0.904.0-104662
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.i686 #1 SMP
                              Tue Oct 4 00:51:19 UTC 2011 i686 i686
Alert Count                   5
First Seen                    Пн. 17 окт. 2011 09:33:48
Last Seen                     Пн. 17 окт. 2011 20:58:28
Local ID                      11ef1d21-42b3-482c-ac1f-0bdf3c1708e0

Raw Audit Messages
type=AVC msg=audit(1318895908.368:91): avc:  denied  { execute_no_trans } for  pid=3436 comm="chrome" path="/opt/google/chrome/nacl_helper_bootstrap" dev=sda1 ino=1446636 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=file


type=SYSCALL msg=audit(1318895908.368:91): arch=i386 syscall=execve success=no exit=EACCES a0=b980350c a1=b98006a0 a2=bfc91cc0 a3=bfc91cc0 items=0 ppid=1 pid=3436 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=chrome exe=/opt/google/chrome/chrome subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chrome,chrome_sandbox_t,usr_t,file,execute_no_trans

audit2allow

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t usr_t:file execute_no_trans;

audit2allow -R

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t usr_t:file execute_no_trans;

Comment 1 Miroslav Grepl 2011-10-18 08:27:36 UTC
Fixed in selinux-policy-3.9.16-44.fc15


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