Bug 379621 - Can't Start VirtualBox - SELinux is preventing VirtualBox from loading /usr/lib/VBoxVMM.so which requires text relocation.
Can't Start VirtualBox - SELinux is preventing VirtualBox from loading /usr/l...
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2007-11-13 04:47 EST by Robert E. Lee
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-14 03:54:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert E. Lee 2007-11-13 04:47:50 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]

How reproducible:
Attempt to start VirtualBox

Actual results:
/usr/lib/virtualbox/VirtualBox: error while loading shared libraries:
/usr/lib/VBoxVMM.so: cannot restore segment prot after reloc: Permission denied

Expected results:
VirtualBox starting.

Additional info:
This worked in FC7.
Comment 1 Daniel Walsh 2007-11-13 14:41:04 EST

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
Comment 2 Robert E. Lee 2007-11-14 03:54:41 EST
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

Comment 3 Daniel Walsh 2007-11-14 10:16:20 EST
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


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