VirtualBox

Ticket #6362 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: willyo Owned by:
Priority: minor 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

comment:1 Changed 4 years ago by frank

  • 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

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

comment:2 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 3.1.6.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use