Bug 717907 - SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/lib64/opera/opera.
Summary: SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:12faa89e929...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-30 11:48 UTC by cyrushmh
Modified: 2011-07-08 18:10 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.16-32.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-08 18:10:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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