From: Adam Nielsen Date: Mon, 8 Jun 2020 02:40:47 +0000 (+1000) Subject: login: allow individual USB ports to be assigned to seats X-Git-Tag: v246-rc1~189 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f01994380e24a2ed04004b8f3cd176b8d5335b7c;p=thirdparty%2Fsystemd.git login: allow individual USB ports to be assigned to seats Assigning seats to specific USB ports lets the devices plugged into them inherit the port's seat assignment. --- diff --git a/src/login/71-seat.rules.in b/src/login/71-seat.rules.in index 2bbd18363e6..60dd6add60d 100644 --- a/src/login/71-seat.rules.in +++ b/src/login/71-seat.rules.in @@ -30,6 +30,11 @@ SUBSYSTEM=="pci", ENV{ID_PCI_CLASS_FROM_DATABASE}=="Display controller", \ ENV{DRIVER}=="", IMPORT{cmdline}="nomodeset", TAG+="seat", TAG+="master-of-seat" SUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="seat", TAG+="master-of-seat" + +# Allow individual USB ports to be assigned to a seat +SUBSYSTEM=="usb", ATTR{bDeviceClass}=="00", TAG+="seat" + +# Allow USB hubs (and all downstream ports) to be assigned to a seat SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat" # 'Plugable' USB hub, sound, network, graphics adapter