udev: filter-out QEMU devices

Fixes QubesOS/qubes-issues#2969
This commit is contained in:
Marek Marczykowski-Górecki 2017-08-07 23:00:53 +02:00
parent 43908b7eaa
commit 823d73a524
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -3,6 +3,9 @@
# Handle only USB devices # Handle only USB devices
SUBSYSTEM!="usb", GOTO="qubes_usb_end" SUBSYSTEM!="usb", GOTO="qubes_usb_end"
# ignore qemu emulated devices in HVM
ENV{ID_VENDOR}=="QEMU", GOTO="qubes_usb_end"
ACTION=="add", IMPORT{program}="/usr/lib/qubes/udev-usb-add-change" ACTION=="add", IMPORT{program}="/usr/lib/qubes/udev-usb-add-change"
ACTION=="change", IMPORT{program}="/usr/lib/qubes/udev-usb-add-change" ACTION=="change", IMPORT{program}="/usr/lib/qubes/udev-usb-add-change"
ACTION=="remove", RUN+="/usr/lib/qubes/udev-usb-remove" ACTION=="remove", RUN+="/usr/lib/qubes/udev-usb-remove"