]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: allow individual USB ports to be assigned to seats
authorAdam Nielsen <malvineous@shikadi.net>
Mon, 8 Jun 2020 02:40:47 +0000 (12:40 +1000)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 11:30:59 +0000 (13:30 +0200)
Assigning seats to specific USB ports lets the devices plugged into them
inherit the port's seat assignment.

src/login/71-seat.rules.in

index 2bbd18363e69a817dd0c769c489b53fbacbb1f08..60dd6add60da1cb0bbb863d430d9333db7ca5f3a 100644 (file)
@@ -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