1
0
forked from pool/virtualbox

Accepting request 1163957 from home:javispedro:branches:Virtualization

- Setting 0660 as permissions of /dev/vboxusb directory itself was preventing
  access to this directory by any non-root user, even if member of vboxusers.
  This results in VBox UI failing to enable USB passthrough.
  Fix issue by removing all the workarounds for /dev/vboxusb/* as they should
  no longer be required.

I have verified that with this USB passhtrough works on today's TW (real machine), as well as Leap 15.5 (on a VM)  and today's Leap 15.6 beta (unfortunately, I couldn't get a nested VM to work on 15.6 at all -- but with this fix the UI can enumerate USB devices at least).  

Without this fix, VBox always shows "VirtualBox is not currently allowed to access USB devices. You can change this by adding your user to vboxusers [....]", and the UI cannot enumerate USB devices at all.

OBS-URL: https://build.opensuse.org/request/show/1163957
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=732
This commit is contained in:
Larry Finger
2024-04-01 18:10:32 +00:00
committed by Git OBS Bridge
parent 4900a45cd9
commit 593b34655b
4 changed files with 10 additions and 25 deletions

View File

@@ -60,10 +60,6 @@ fi
[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
chmod "${DEVICE_MODE}" /etc/vboxusb/
chmod "${DEVICE_MODE}" /etc/vboxusb/*
chmod "${DEVICE_MODE}" /etc/vboxusb/*/*
begin_msg()
{
test -n "${2}" && echo "${SCRIPTNAME}: ${1}."