X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=udev.rules;h=5cf25b2c5cfdd514a9d497cfd3d3d588b803694e;hb=c88c6ac82ec5a53e6f78e33942bf90e03011fb30;hp=971859393b809534fb4516df8ef5459b525a35e5;hpb=37dbb4e161474ba500b4b064f612c31edb03afd3;p=packages%2FVirtualBox.git diff --git a/udev.rules b/udev.rules index 9718593..5cf25b2 100644 --- a/udev.rules +++ b/udev.rules @@ -1,5 +1,10 @@ # udev rules for VirtualBox +# Reference: https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Installer/linux/installer-common.sh + +# Devices in Host KERNEL=="vboxdrv", GROUP="vbox", MODE="0660" +# vboxdrvu -- the unrestricted device +KERNEL=="vboxdrvu", GROUP="root", MODE="0666" KERNEL=="vboxnetctl", GROUP="vbox", MODE="0660" # these lines below give access permission to vbox users to properly work with usb nodes, enabling them could be security risk: @@ -9,3 +14,7 @@ SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="VBoxCreateUSB SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="VBoxCreateUSBNode.sh --remove $major $minor" SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="VBoxCreateUSBNode.sh --remove $major $minor" + +# Devices in Guest, should use acl really +KERNEL=="vboxguest", GROUP="vbox", MODE="0600" +KERNEL=="vboxuser", GROUP="vbox", MODE="0666"