VirtualBox

Opened 14 years ago

Closed 14 years ago

#6362 closed defect (fixed)

[Fedora 12] 'mount c /mnt/c -t vboxsf' in rc.local fails w/SELinux error => Fixed in SVN

Reported by: William Meier Owned by:
Component: shared folders Version: VirtualBox 3.1.4
Keywords: Cc:
Guest type: Linux Host type: other

Description

Configuration:

VirtualBox 3.1.4 with guest-additions installed and with a Fedora12 guest with SELinux enabled;

Issue:

Mounting a vboxsf file-system at boot-time in rc.local fails with a SELinux error.

It appears than when mount is run from an init script that any mount "helpers" (eg: mount.vboxsf) must have "mount_exec_t" security context.

So: I suspect that

/opt/VBoxGuestAdditions-3.1.4/lib/VBoxGuestAdditions/mount.vboxsf

should be installed with mount_exec_t context (not usr_t).

(After I made this change, a 'mount ... -t vboxsf' in rc.local then worked properly).


SELinux error:

SELinux is preventing /bin/mount "execute" access to
/opt/VBoxGuestAdditions-3.1.4/lib/VBoxGuestAdditions/mount.vboxsf.

...

Source Context                system_u:system_r:mount_t:s0
Target Context                unconfined_u:object_r:usr_t:s0
Target Objects                /opt/VBoxGuestAdditions-3.1.4/lib/VBoxGuestAdditio
                              ns/mount.vboxsf [ file ]
Source                        mount
Source Path                   /bin/mount

Change History (2)

comment:1 by Frank Mehnert, 14 years ago

Summary: [Fedora 12] 'mount c /mnt/c -t vboxsf' in rc.local fails w/SELinux error[Fedora 12] 'mount c /mnt/c -t vboxsf' in rc.local fails w/SELinux error => Fixed in SVN

Thanks for the report. Fixed in the next maintenance release.

comment:2 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in 3.1.6.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use