summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorAdam Nielsen <malvineous@shikadi.net>2020-06-08 12:40:47 +1000
committerLennart Poettering <lennart@poettering.net>2020-06-09 13:30:59 +0200
commitf01994380e24a2ed04004b8f3cd176b8d5335b7c (patch)
treea7b252c9ad0095a579158baf93f368c94819e933 /src/login
parented66590d15487b22da28d2f1b6608e9acc3449c1 (diff)
downloadsystemd-f01994380e24a2ed04004b8f3cd176b8d5335b7c.tar.gz
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.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/71-seat.rules.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/login/71-seat.rules.in b/src/login/71-seat.rules.in
index 2bbd18363e..60dd6add60 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