* Fix the permissions on /dev/vboxuser in VirtualBox guests.

svn path=/nixos/trunk/; revision=33372
This commit is contained in:
Eelco Dolstra 2012-03-23 11:52:06 +00:00
parent b46e911012
commit 7c75b046ea
2 changed files with 8 additions and 1 deletions

View file

@ -15,7 +15,6 @@ let
};
nixosRules = ''
# Miscellaneous devices.
KERNEL=="kvm", MODE="0666"
KERNEL=="kqemu", MODE="0666"

View file

@ -65,6 +65,14 @@ in
PATH=${makeSearchPath "bin" [ pkgs.gnugrep pkgs.which pkgs.xorg.xorgserver ]}:$PATH \
${kernel.virtualboxGuestAdditions}/bin/VBoxClient-all
'';
services.udev.extraRules =
''
# /dev/vboxuser is necessary for VBoxClient to work. Maybe we
# should restrict this to logged-in users.
KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666"
'';
};
}