udev: ignore usbip-connected USB devices
Those devices are most likely attached using "PV USB" from another domain, so it doesn't make sense to list them as available for further passthrough. QubesOS/qubes-issues#531
This commit is contained in:
parent
c926f4565d
commit
cf5f382d7a
@ -33,6 +33,12 @@ else
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ignore usbip-connected devices, as most likely already passed through from
|
||||||
|
# another VM
|
||||||
|
if [ "`echo $DEVPATH | cut -d / -f 2-4`" = "devices/platform/vhci_hcd" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
QDB_KEY="/qubes-usb-devices/$XSNAME"
|
QDB_KEY="/qubes-usb-devices/$XSNAME"
|
||||||
|
|
||||||
qubesdb-write "$QDB_KEY/desc" "$DESC"
|
qubesdb-write "$QDB_KEY/desc" "$DESC"
|
||||||
|
Loading…
Reference in New Issue
Block a user