[vbox-dev] grant access to usb device in vbox4.0.0

Michal Šebeň mseben at gmail.com
Fri Jan 14 08:39:08 GMT 2011


Hi,

I looked in rpm spec file which is included in tarball, to check how
rpm build for SUSE deals with usb permissions problem :

- in post install of specfile : udev rule is added,
http://www.virtualbox.org/browser/trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec#L239
- this udev rule is triggered if usb device is added/removed - and it
will call VBoxCreateUSBNode.sh
http://www.virtualbox.org/browser/trunk/src/VBox/Installer/linux/VBoxCreateUSBNode.sh
- VBoxCreateUSBNode.sh (build /dev/vboxusb dir with usb devices and
grand acces to $group) || (destroy /dev/vboxusb device)

maybe I oversight but what about drop this concept and push to
vboxdrv.rules these TWO lines (instead)? :
SUBSYSTEM=="usb_device", ATTR{devnum}=="?*",
ATTR{busnum}=="?*",NAME="vboxusb/$attr{busnum}/$attr{devnum}",
GROUP=$group
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{devnum}=="?*",
ATTR{busnum}=="?*",NAME="vboxusb/$attr{busnum}/$attr{devnum}",
GROUP="$group

bye




More information about the vbox-dev mailing list