Red Hat Bugzilla – Bug 379621
Can't Start VirtualBox - SELinux is preventing VirtualBox from loading /usr/lib/VBoxVMM.so which requires text relocation.
Last modified: 2007-11-30 17:12:22 EST
Description of problem:
The VirtualBox application attempted to load /usr/lib/VBoxVMM.so which
requires text relocation.
Version-Release number of selected component (if applicable):
Affected RPM Packages VirtualBox-1.5.2_25433_fedora7-1 [target]
Attempt to start VirtualBox
/usr/lib/virtualbox/VirtualBox: error while loading shared libraries:
/usr/lib/VBoxVMM.so: cannot restore segment prot after reloc: Permission denied
This worked in FC7.
chcon -t textrel_shlib_t /usr/lib/VBoxVMM.so
Fix the problem?
Thi sis a bug in the way the library was built. You should report this as a bug
to the maintainers/distributes of VirtualBox.
I will default the file type to
textrel_shlib_t in selinux-policy-3.0.8-54.fc8
Sorry. This likely only became a problem because I upgraded from FC7->FC8 and
then relabeled the fs.
After changing the context to system_u:object_r:textrel_shlib_t for the
following files, VirtualBox functioned properly again.
VBoxDD2.so VBoxKeyboard.so VBoxSharedClipboard.so VBoxVRDP.so
VBoxDD.so VBoxREM.so VBoxSharedFolders.so VBoxXML.so
VBoxDDU.so VBoxRT.so VBoxVMM.so VBoxXPCOM.so
VBoxC.so VBoxSVCM.so VBoxXPCOMIPCC.so
No this is a problem. I added this mapping to selinux-policy-3.0.8-54.fc8
But you should report it to VirtualBox. They are building their libraries