Bug 754230 - SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/lib/virtualbox/VBoxManage.
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: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aa4c9cb67d802b835e64728a479...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 19:28 UTC by Mattia Verga
Modified: 2011-11-30 02:01 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.10.0-61.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-30 02:01:19 UTC
Type: ---


Attachments (Terms of Use)

Description Mattia Verga 2011-11-15 19:28:35 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.1-1.fc16.x86_64
reason:         SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/lib/virtualbox/VBoxManage.
time:           Tue Nov 15 20:27:38 2011

description:
:SELinux is preventing /bin/bash from 'execute_no_trans' accesses on the file /usr/lib/virtualbox/VBoxManage.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that bash should be allowed execute_no_trans access on the VBoxManage 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 sh /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:boinc_t:s0
:Target Context                system_u:object_r:lib_t:s0
:Target Objects                /usr/lib/virtualbox/VBoxManage [ file ]
:Source                        sh
:Source Path                   /bin/bash
:Port                          <Sconosciuto>
:Host                          (removed)
:Source RPM Packages           bash-4.2.10-5.fc16
:Target RPM Packages           VirtualBox-4.1-4.1.6_74713_fedora16-1
:Policy RPM                    selinux-policy-3.10.0-55.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux Betelgeuse 3.1.1-1.fc16.x86_64 #1 SMP Fri
:                              Nov 11 21:47:56 UTC 2011 x86_64 x86_64
:Alert Count                   3
:First Seen                    mar 15 nov 2011 18:59:29 CET
:Last Seen                     mar 15 nov 2011 20:04:16 CET
:Local ID                      c2939e40-088c-4b89-afb7-f24731b7ddf1
:
:Raw Audit Messages
:type=AVC msg=audit(1321383856.198:161): avc:  denied  { execute_no_trans } for  pid=16925 comm="sh" path="/usr/lib/virtualbox/VBoxManage" dev=dm-0 ino=2501878 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1321383856.198:161): arch=x86_64 syscall=execve success=no exit=EACCES a0=20dfeb0 a1=20df230 a2=20dee70 a3=8 items=0 ppid=1171 pid=16925 auid=4294967295 uid=994 gid=988 euid=994 suid=994 fsuid=994 egid=988 sgid=988 fsgid=988 tty=(none) ses=4294967295 comm=sh exe=/bin/bash subj=system_u:system_r:boinc_t:s0 key=(null)
:
:Hash: sh,boinc_t,lib_t,file,execute_no_trans
:
:audit2allow
:
:#============= boinc_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow boinc_t lib_t:file execute_no_trans;
:
:audit2allow -R
:
:#============= boinc_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow boinc_t lib_t:file execute_no_trans;
:

Comment 1 Miroslav Grepl 2011-11-16 12:00:12 UTC
If you execute

# chcon -t bin_t /usr/lib/virtualbox/VBoxManage

does it work?

Comment 2 Mattia Verga 2011-11-16 20:36:41 UTC
I've previously followed the steps suggested to create a local policy module and didn't received the error anymore. Should I revert the local policy before trying the command you required? If yes, how?

Comment 3 Miroslav Grepl 2011-11-17 09:59:19 UTC
No, you don't need to revert the local policy. Just try the command.

Comment 4 Mattia Verga 2011-11-17 19:43:33 UTC
I issued the command, no output in response. As I said, after having applied the local policy I didn't see the error anymore, so I can't say if the command you suggested works or not... I also don't know how to reproduce the error: I got it after installing VBox, but even before launch it for the first time, so it was triggered by some background process, I think.

Feel free to close the bug, since I can't reproduce it anymore. Thank you for your support.

Comment 5 Miroslav Grepl 2011-11-21 09:14:08 UTC
Fixed in selinux-policy-3.10.0-57.fc16

Comment 6 Fedora Update System 2011-11-24 13:23:03 UTC
selinux-policy-3.10.0-59.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-59.fc16

Comment 7 Fedora Update System 2011-11-25 02:18:18 UTC
Package selinux-policy-3.10.0-60.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-60.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16371/selinux-policy-3.10.0-60.fc16
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-11-25 23:26:32 UTC
Package selinux-policy-3.10.0-61.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-61.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16371/selinux-policy-3.10.0-61.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2011-11-30 02:01:19 UTC
selinux-policy-3.10.0-61.fc16 has been pushed to the Fedora 16 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.