Opened 12 years ago
Closed 8 years ago
#11199 closed defect (obsolete)
No usb with 4.2.4 on openSUSE 12.2 x86_64 host
Reported by: | Hans-Peter Jansen | Owned by: | |
---|---|---|---|
Component: | USB | Version: | VirtualBox 4.2.4 |
Keywords: | Cc: | hp@… | |
Guest type: | Windows | Host type: | Linux |
Description
although openSUSE adds proper permissions on the USB device tree with udev and the user has proper permissions:
hp@xrated:~> id
uid=1000(hp) gid=2222(lisa)
Gruppen=2222(lisa),17(audio),20(cdrom),33(video),125(vboxusers),513(domuser),1000(users), 7 more...
hp@xrated:~> l -R /dev/vboxusb/
/dev/vboxusb/:
insgesamt 0
drwxr-xr-x 4 root vboxusers 80 15. Nov 01:04 ./
drwxr-xr-x 21 root root 4680 15. Nov 01:04 ../
drwxr-xr-x 2 root root 100 15. Nov 01:04 1/
drwxr-xr-x 2 root root 120 15. Nov 01:04 2/
/dev/vboxusb/1:
insgesamt 0
drwxr-xr-x 2 root root 100 15. Nov 01:04 ./
drwxr-xr-x 4 root vboxusers 80 15. Nov 01:04 ../
lrwxrwxrwx 1 root root 21 15. Nov 01:04 1 -> ../../bus/usb/001/001
lrwxrwxrwx 1 root root 21 15. Nov 01:04 2 -> ../../bus/usb/001/002
lrwxrwxrwx 1 root root 21 15. Nov 01:04 3 -> ../../bus/usb/001/003
lrwxrwxrwx 1 root root 21 15. Nov 01:58 4 -> ../../bus/usb/001/004
/dev/vboxusb/2:
insgesamt 0
drwxr-xr-x 2 root root 120 15. Nov 01:04 ./
drwxr-xr-x 4 root vboxusers 80 15. Nov 01:04 ../
lrwxrwxrwx 1 root root 21 15. Nov 01:04 1 -> ../../bus/usb/002/001
lrwxrwxrwx 1 root root 21 15. Nov 01:04 2 -> ../../bus/usb/002/002
lrwxrwxrwx 1 root root 21 15. Nov 01:04 3 -> ../../bus/usb/002/003
lrwxrwxrwx 1 root root 21 15. Nov 01:04 4 -> ../../bus/usb/002/004
hp@xrated:~> getfacl -R /dev/vboxusb/{1,2}/*
# file: dev/vboxusb/1/1
# owner: root
# group: root
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/1/2
# owner: root
# group: root
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/1/3
# owner: root
# group: root
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/1/4
# owner: root
# group: scard
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/2/1
# owner: root
# group: root
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/2/2
# owner: root
# group: root
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/2/3
# owner: root
# group: lp
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
# file: dev/vboxusb/2/4
# owner: root
# group: root
user::rw-
group::rw-
group:vboxusers:rw-[[BR]]
mask::rw-
other::r--
but:
hp@xrated:~> VBoxManage list usbhost
Host USB Devices:
<none>
while as root:
xrated:~# VBoxManage list usbhost
Host USB Devices:
UUID: 31b9f3e5-922c-4f37-892c-a6b38cab2bca
VendorId: 0x046a (046A)
ProductId: 0x0001 (0001)
Revision: 0.38 (0038)
Port: 4
USB version/speed: 2/1
Manufacturer: Cherry GmbH
Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5//device:/dev/bus/usb/002/004[[BR]]
Current State: Busy
UUID: bbb9f5c8-9df7-41a4-9cf3-9a25d7056e82
VendorId: 0x046d (046D)
ProductId: 0xc51b (C51B)
Revision: 70.0 (7000)
Port: 4
USB version/speed: 1/1
Manufacturer: Logitech
Product: USB Receiver
Address: sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5//device:/dev/bus/usb/001/003[[BR]]
Current State: Busy
UUID: 7ef81c94-5747-40ae-9974-4ede94120ed9
VendorId: 0x04b8 (04B8)
ProductId: 0x0119 (0119)
Revision: 1.0 (0100)
Port: 3
USB version/speed: 2/2
Manufacturer: EPSON
Product: EPSON Scanner
Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4//device:/dev/bus/usb/002/003[[BR]]
Current State: Available
UUID: 79234263-6ad7-437f-8e52-e832c1590240
VendorId: 0x0d46 (0D46)
ProductId: 0x3014 (3014)
Revision: 0.32 (0032)
Port: 2
USB version/speed: 2/1
Manufacturer: KOBIL Systems
Product: Smart Token
SerialNumber: NE123123313
Address: sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3//device:/dev/bus/usb/001/004[[BR]]
Current State: Available
The correct extpack is installed:
xrated:~# VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.2.4
Revision: 81684
Edition:
Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
Any more ideas?
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Well, the openSUSE builds use a udev rule to apply the permissions:
/etc/udev/rules.d/60-vboxdrv.rules:
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
#these two lines give access permission to vboxusers to properly work with usb nodes, this could be security risk (bnc#664520) ![[BR]]
#
SUBSYSTEM=="usb_device",ATTR{devnum}=="?*",ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}",RUN+="/usr/bin/setfacl -m g:vboxusers:6 /dev/vboxusb/$attr{busnum}/$attr{devnum}"
SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTR{devnum}=="?*",ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}",RUN+="/usr/bin/setfacl -m g:vboxusers:6 /dev/vboxusb/$attr{busnum}/$attr{devnum}"
as /dev is a devtmpfs
comment:3 by , 12 years ago
I'm afraid that you didn't answer my question, though I am reasonably sure that you are using the builds from the openSUSE repositories. The thing is that we don't maintain those builds (openSUSE are responsible for them) so we can't really take bug reports from them. Particularly in this case, given that what you have posted above does not look like anything in our builds of the packages unless I am much mistaken.
comment:4 by , 8 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Please reopen if still relevant with a recent VirtualBox release.
The "ls -lR" output doesn't look like you are running the scripts which come with VirtualBox from virtualbox.org - is it from the openSUSE repository? We create proper device nodes in /dev/vboxusb, not symbolic links. And since the symbolic links go back into /dev/bus/usb the nodes will have the same access rights as the files under that directory.