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:
Marek Marczykowski-Górecki 2016-06-01 14:03:01 +02:00
parent c926f4565d
commit cf5f382d7a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -33,6 +33,12 @@ else
exit 0
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"
qubesdb-write "$QDB_KEY/desc" "$DESC"