Bug 1451479

Summary: virtualbox needs more selinux privileges
Product: [Fedora] Fedora Reporter: David Hill <dhill>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 27CC: dhill, dominick.grift, dwalsh, lvrabec, mgrepl, okrh, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.16.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-20 16:57:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Hill 2017-05-16 18:27:38 UTC
Description of problem:

virtualbox needs more selinux privileges


[root@otto devel]# cat /var/log/audit/audit.log  | grep denied | grep vbox
type=AVC msg=audit(1492297378.201:112): avc:  denied  { create } for  pid=1193 comm="vboxdrv.sh" name="vbox-install.log" scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=1


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install rawhide
2. Install virtualbox
3. Reboot and wait for vboxdrv.sh to do some nasty things while booting up

Actual results:
selinux blocks it

Expected results:
selinux should allow it or oracle should fix it.

Additional info:

Comment 1 Jan Kurik 2017-08-15 09:28:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 2 John Freed 2017-10-01 07:19:35 UTC
I believe this is a duplicate of the more specific bug #1471296

Still a problem.

Comment 3 Lukas Vrabec 2017-10-03 14:34:15 UTC
Hi, 

Could you try following: 

# chcon -t bin_t /etc/init.d/vboxdrv

And then reproduce the scenario? 

Thanks,
Lukas.

Comment 5 Fedora Update System 2017-11-16 15:13:26 UTC
selinux-policy-3.13.1-283.16.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5178e6a393

Comment 6 Fedora Update System 2017-11-17 18:56:57 UTC
selinux-policy-3.13.1-283.16.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5178e6a393

Comment 7 Fedora Update System 2017-11-20 16:57:15 UTC
selinux-policy-3.13.1-283.16.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.