Ticket #6362 (closed defect: fixed)
[Fedora 12] 'mount c /mnt/c -t vboxsf' in rc.local fails w/SELinux error => Fixed in SVN
|Reported by:||willyo||Owned by:|
VirtualBox 3.1.4 with guest-additions installed and with a Fedora12 guest with SELinux enabled;
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
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
- Summary changed from [Fedora 12] 'mount c /mnt/c -t vboxsf' in rc.local fails w/SELinux error to [Fedora 12] 'mount c /mnt/c -t vboxsf' in rc.local fails w/SELinux error => Fixed in SVN