Bug 785612 - SELinux is preventing /usr/lib/virtualbox/VBoxManage from 'execute_no_trans' accesses on the None /usr/lib/virtualbox/VBoxManage.
Summary: SELinux is preventing /usr/lib/virtualbox/VBoxManage from 'execute_no_trans' ...
Keywords:
Status: CLOSED NOTABUG
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:17bed0b8ae3adfa9624296f6f02...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-30 00:11 UTC by Devon Janitz
Modified: 2012-01-31 16:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-31 15:07:57 UTC
Type: ---


Attachments (Terms of Use)

Description Devon Janitz 2012-01-30 00:11:38 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/lib/virtualbox/VBoxManage from 'execute_no_trans' accesses on the None /usr/lib/virtualbox/VBoxManage.
time:           Sun 29 Jan 2012 07:11:22 PM EST

description:
:SELinux is preventing /usr/lib/virtualbox/VBoxManage from 'execute_no_trans' accesses on the None /usr/lib/virtualbox/VBoxManage.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that VBoxManage should be allowed execute_no_trans access on the VBoxManage <Unknown> 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 VBoxManage /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:textrel_shlib_t:s0
:Target Objects                /usr/lib/virtualbox/VBoxManage [ None ]
:Source                        VBoxManage
:Source Path                   /usr/lib/virtualbox/VBoxManage
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64
:Target RPM Packages           VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64
:Policy RPM                    selinux-policy-3.10.0-72.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1
:                              SMP Thu Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   5
:First Seen                    Sun 29 Jan 2012 01:40:25 PM EST
:Last Seen                     Sun 29 Jan 2012 07:10:29 PM EST
:Local ID                      512a09bc-0934-49f5-b8a3-9e8bbf23f616
:
:Raw Audit Messages
:type=AVC msg=audit(1327882229.103:79): avc:  denied  { execute_no_trans } for  pid=2303 comm="sh" path="/usr/lib/virtualbox/VBoxManage" dev=dm-1 ino=1972867 scontext=system_u:system_r:boinc_t:s0 tcontext=system_u:object_r:textrel_shlib_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1327882229.103:79): arch=c000003e syscall=59 success=yes exit=0 a0=1440eb0 a1=1440230 a2=143fe70 a3=18 items=0 ppid=2296 pid=2303 auid=4294967295 uid=993 gid=990 euid=993 suid=993 fsuid=993 egid=990 sgid=990 fsgid=990 tty=(none) ses=4294967295 comm="VBoxManage" exe="/usr/lib/virtualbox/VBoxManage" subj=system_u:system_r:boinc_t:s0 key=(null)
:
:
:Hash: VBoxManage,boinc_t,textrel_shlib_t,None,execute_no_trans
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-01-30 11:15:44 UTC
Did you change the label for /usr/lib/virtualbox/VBoxManage?

$ matchpathcon /usr/lib/virtualbox/VBoxManage
/usr/lib/virtualbox/VBoxManage	system_u:object_r:bin_t:s0


Are you able to find an alert which suggested you. What does


$ matchpathcon /usr/lib/virtualbox/VBoxManage

for you?

Comment 2 Devon Janitz 2012-01-31 14:09:31 UTC
The matchpathcon returns "/usr/lib/virtualbox/VBoxManage system_u:object_r:bin_t:s" as you thought.  After further oberservation it seems to be triggered by not actually using Virtual Box, but starting boinc-client. I can use service start, then service stop, then service start and keep recreating the message.  Will watch today, but believe it only happens when the boinc-client is started.  Anything else just let me know.

I have been using "setenforce 0" to test since this start after the last update.
Thanks, Devon

Comment 3 Daniel Walsh 2012-01-31 14:55:11 UTC
Devon run restorecon on the executable and once it is bin_t the AVC will no longer happen.

Comment 4 Miroslav Grepl 2012-01-31 15:07:57 UTC
$ restorecon -v /usr/lib/virtualbox/VBoxManage

Comment 5 Devon Janitz 2012-01-31 16:11:48 UTC
Tested what you wrote and seemed to correct the problem.  Can you provide any insite or a link for me to read as to why this goes sideways?
Thanks, Devon


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