Bug 717907

Summary: SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/lib64/opera/opera.
Product: [Fedora] Fedora Reporter: cyrushmh <cyrusyzgtt>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:12faa89e92904bc43269b7e61e4063de2de879acc0215b8ae809d90cf0d12ad6
Fixed In Version: selinux-policy-3.9.16-32.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-08 18:10:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cyrushmh 2011-06-30 11:48:32 UTC
SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/lib64/opera/opera.

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

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

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_net_client_t:s0:
                              c146,c905
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib64/opera/opera [ file ]
Source                        opera
Source Path                   /bin/bash
Port                          <未知>
Host                          (removed)
Source RPM Packages           bash-4.2.10-4.fc15
Target RPM Packages           opera-11.50-1074
Policy RPM                    selinux-policy-3.9.16-30.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05
                              UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    2011年06月30日 星期四 19时46分01秒
Last Seen                     2011年06月30日 星期四 19时46分01秒
Local ID                      c92ac53b-f1ac-4648-ae3d-52af54b15945

Raw Audit Messages
type=AVC msg=audit(1309434361.651:78): avc:  denied  { execute_no_trans } for  pid=7806 comm="opera" path="/usr/lib64/opera/opera" dev=sda6 ino=1454871 scontext=unconfined_u:unconfined_r:sandbox_net_client_t:s0:c146,c905 tcontext=system_u:object_r:lib_t:s0 tclass=file


type=SYSCALL msg=audit(1309434361.651:78): arch=x86_64 syscall=execve success=no exit=EACCES a0=17ca6e0 a1=17ca780 a2=17ca810 a3=8 items=0 ppid=7802 pid=7806 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=opera exe=/bin/bash subj=unconfined_u:unconfined_r:sandbox_net_client_t:s0:c146,c905 key=(null)

Hash: opera,sandbox_net_client_t,lib_t,file,execute_no_trans

audit2allow

#============= sandbox_net_client_t ==============
allow sandbox_net_client_t lib_t:file execute_no_trans;

audit2allow -R

#============= sandbox_net_client_t ==============
allow sandbox_net_client_t lib_t:file execute_no_trans;

#===============================================Must read this
I use sandbox ,want to know new opera realse "is this can be use flashplugin at sandbox"
sandbox -X -W metacity -w 1366x710 -i ~/.mozilla/plugins/libflashplayer.so -t sandbox_net_t opera

Comment 1 Miroslav Grepl 2011-07-01 08:05:17 UTC
Execute

# chcon -t bin_t /usr/lib64/opera/opera

Also you might want to run

sandbox -X -W metacity -w 1366x710 -i ~/.mozilla/plugins/libflashplayer.so -t
sandbox_web_t opera

Comment 2 Miroslav Grepl 2011-07-01 08:52:56 UTC
Fixed in selinux-policy-3.9.16-32.fc15

Comment 3 Fedora Update System 2011-07-01 14:17:00 UTC
selinux-policy-3.9.16-32.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-32.fc15

Comment 4 Fedora Update System 2011-07-01 18:54:57 UTC
Package selinux-policy-3.9.16-32.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.16-32.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-32.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-07-08 18:09:13 UTC
selinux-policy-3.9.16-32.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.