Bug 790959 - SELinux is preventing /usr/lib64/virtualbox/VBoxManage from 'add_name' accesses on the dossier .VirtualBox.
Summary: SELinux is preventing /usr/lib64/virtualbox/VBoxManage from 'add_name' access...
Keywords:
Status: CLOSED DUPLICATE of bug 790949
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:f519c89400afa46475efe86e833...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-15 19:36 UTC by Pascal94
Modified: 2012-02-16 17:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-16 14:45:24 UTC
Type: ---


Attachments (Terms of Use)

Description Pascal94 2012-02-15 19:36:40 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.6-3.fc16.x86_64
reason:         SELinux is preventing /usr/lib64/virtualbox/VBoxManage from 'add_name' accesses on the dossier .VirtualBox.
time:           mer. 15 févr. 2012 20:36:30 CET

description:
:SELinux is preventing /usr/lib64/virtualbox/VBoxManage from 'add_name' accesses on the dossier .VirtualBox.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that VBoxManage should be allowed add_name access on the .VirtualBox directory 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_project_t:s0
:Target Context                system_u:object_r:boinc_var_lib_t:s0
:Target Objects                .VirtualBox [ dir ]
:Source                        VBoxManage
:Source Path                   /usr/lib64/virtualbox/VBoxManage
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           VirtualBox-OSE-4.1.8-2.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux CM-ELITE-341 3.2.6-3.fc16.x86_64 #1 SMP Mon
:                              Feb 13 20:35:42 UTC 2012 x86_64 x86_64
:Alert Count                   9
:First Seen                    mer. 15 févr. 2012 20:35:29 CET
:Last Seen                     mer. 15 févr. 2012 20:35:49 CET
:Local ID                      4b773377-fdfe-4b75-9a3c-005bbacec24b
:
:Raw Audit Messages
:type=AVC msg=audit(1329334549.677:117): avc:  denied  { add_name } for  pid=3165 comm="VBoxManage" name=".VirtualBox" scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:object_r:boinc_var_lib_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1329334549.677:117): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=7fff882f9650 a1=1ff a2=0 a3=7fff882f9310 items=0 ppid=2999 pid=3165 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/lib64/virtualbox/VBoxManage subj=system_u:system_r:boinc_project_t:s0 key=(null)
:
:Hash: VBoxManage,boinc_project_t,boinc_var_lib_t,dir,add_name
:
:audit2allow
:
:#============= boinc_project_t ==============
:allow boinc_project_t boinc_var_lib_t:dir add_name;
:
:audit2allow -R
:
:#============= boinc_project_t ==============
:allow boinc_project_t boinc_var_lib_t:dir add_name;
:

Comment 1 Miroslav Grepl 2012-02-16 11:15:14 UTC
What boinc project does it cause?

Comment 2 Miroslav Grepl 2012-02-16 14:45:24 UTC

*** This bug has been marked as a duplicate of bug 790949 ***

Comment 3 Pascal94 2012-02-16 17:50:08 UTC
Hi Miroslav,

it is the Test4Theory project from CERN : http://lhcathome.web.cern.ch/LHCathome/Physics/

By the past, I did run this project with either VirtualBox and VirtualBox_OSE on Ubuntu.

Now, I try to run this project on Fedora, with VirtualBox_OSE and/or VirtualBox.

Here you can see the output of my workunits : http://lhcathome2.cern.ch/test4theory/results.php?hostid=14878

From my last workunit, here is the output of sudo /etc/init.d/vboxdrv setup :


Stopping VirtualBox kernel modules                         [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 3.2.6-3.fc16.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/4.1.8/build/make.log for more information.
                                                           [ÉCHOUÉ]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                      [ÉCHOUÉ]
  (Look at /var/log/vbox-install.log to find out what went wrong)
bash-4.2$


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