qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

USBGuard in sys-usb breaks USB device attach

Open DemiMarie opened this issue 5 years ago • 3 comments

Qubes OS version Qubes release 4.0 (R4.0)

Affected component(s) or functionality USB pass-through

Brief summary If I run USBGuard in sys-usb and block USB devices by default, I cannot attach a USB device to another qube. Allowing the USB device in USBGuard doesn’t help.

How Reproducible 100%

To Reproduce

Steps to reproduce the behavior:

  1. Install USBGuard in the template for sys-usb.
  2. Add usbcore.authorized_default=0 to the sys-usb kernel command line.
  3. Reboot sys-usb.
  4. Attach a USB device from sys-usb to another qube.

Expected behavior The attach succeeds, and the device can be used.

Actual behavior The attach succeeds, but the device (a camera in this case) is not usable. It is correctly detected by the frontend qube, but I can’t record video with it.

Screenshots N/A

Additional context

Solutions you've tried

  • Reloading the usbip_host kernel module
  • Using the device in sys-usb before attaching it to the other qube.

Relevant documentation you've consulted

Related, non-duplicate issues

DemiMarie avatar Jan 05 '21 22:01 DemiMarie

Does manually authorizing the device (after connecting via qvm-usb) help?

marmarek avatar Jan 06 '21 01:01 marmarek

Manual authorization before connection does not help.

DemiMarie avatar Jan 06 '21 02:01 DemiMarie

This issue is being closed because:

If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment. (For example, if a bug still affects Qubes OS 4.1, then the comment "Affects 4.1" will suffice.)

github-actions[bot] avatar Aug 05 '23 09:08 github-actions[bot]