does vbox run with suid root under mac os x?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
prsym
Posts: 11
Joined: 26. Nov 2010, 06:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: netbsd

does vbox run with suid root under mac os x?

Post by prsym »

Hi all

When I was using qemu on both my openbsd box and mac os x box, I can launch it as a basic user and it will have not admin or root privedlges. I also then made even more restricted by creating a _qemu user and after you run the qemu command it drops to that user.

With vbox I am not sure. does it run with suid root at some point? is there any way to configure that.
what do you guys do to secure your vbox installs?

regards
prysm
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: does vbox run with suid root under mac os x?

Post by Sasquatch »

VB is set as SUID root on Linux, but that's only done for access to the kernel module. Once access is acquired, the root privileges are dropped and it runs as your normal, unprivileged user.
Qemu can run in complete userland mode, but that has it's disadvantages too, like being slow. VB has a few kernel hooks, which is beneficial to it's high performance. You can rest assured that the developers have made sure that VB is not capable of doing system wide damage when run as unprivileged user.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply