1
0
mirror of https://github.com/systemd/systemd synced 2026-03-26 16:54:53 +01:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Bastien Nocera
72e79f88ac hwdb: Allow end-users root-less access to USB analysers
Procotol analysers are external devices used to capture traffic over a
wire so that it could be analysed. End-users at the console should be
able to access those devices without requiring root access.

This change obsoletes the need to install Total Phase's "Linux drivers",
which are really just udev rules and hotplug usermap files to do that:
https://www.totalphase.com/products/usb-drivers-linux/
2021-08-24 13:54:02 +02:00
4 changed files with 36 additions and 0 deletions

31
hwdb.d/70-analysers.hwdb Normal file
View File

@ -0,0 +1,31 @@
# This file is part of systemd.
#
# Database for protocol analysers that should be accessible to the seat owner
#
# Permitted keys:
# Specify if a device is a protocol analyser
# ID_PROTOCOL_ANALYSER=1|0
###########################################################
# Total Phase
###########################################################
# Aarvark I2C/SPI Host Adapter
usb:v0403pe0d0d*
ID_PROTOCOL_ANALYSER=1
# Beagle Protocol Analyzers
usb:v1679p2001d*
ID_PROTOCOL_ANALYSER=1
# Cheetah SPI Host Adapter
usb:v1679p2002d*
ID_PROTOCOL_ANALYSER=1
# Komodo CAN Duo Interface
usb:v1679p3001d*
ID_PROTOCOL_ANALYSER=1
# Power Delivery Analyzers
usb:v1679p6003d*
usb:v0483pdf11d*
ID_PROTOCOL_ANALYSER=1

View File

@ -27,6 +27,7 @@ hwdb_files_test = files('''
60-keyboard.hwdb 60-keyboard.hwdb
60-seat.hwdb 60-seat.hwdb
60-sensor.hwdb 60-sensor.hwdb
70-analysers.hwdb
70-joystick.hwdb 70-joystick.hwdb
70-mouse.hwdb 70-mouse.hwdb
70-pointingstick.hwdb 70-pointingstick.hwdb

View File

@ -147,6 +147,7 @@ def property_grammar():
('ID_INPUT_TOUCHPAD', Or((Literal('0'), Literal('1')))), ('ID_INPUT_TOUCHPAD', Or((Literal('0'), Literal('1')))),
('ID_INPUT_TOUCHSCREEN', Or((Literal('0'), Literal('1')))), ('ID_INPUT_TOUCHSCREEN', Or((Literal('0'), Literal('1')))),
('ID_INPUT_TRACKBALL', Or((Literal('0'), Literal('1')))), ('ID_INPUT_TRACKBALL', Or((Literal('0'), Literal('1')))),
('ID_PROTOCOL_ANALYSER', Or((Literal('0'), Literal('1')))),
('POINTINGSTICK_SENSITIVITY', INTEGER), ('POINTINGSTICK_SENSITIVITY', INTEGER),
('POINTINGSTICK_CONST_ACCEL', REAL), ('POINTINGSTICK_CONST_ACCEL', REAL),
('ID_INPUT_JOYSTICK_INTEGRATION', Or(('internal', 'external'))), ('ID_INPUT_JOYSTICK_INTEGRATION', Or(('internal', 'external'))),

View File

@ -80,4 +80,7 @@ ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
# 3D printers, CNC machines, laser cutters, 3D scanners, etc. # 3D printers, CNC machines, laser cutters, 3D scanners, etc.
ENV{ID_MAKER_TOOL}=="?*", TAG+="uaccess" ENV{ID_MAKER_TOOL}=="?*", TAG+="uaccess"
# Protocol analysers
ENV{ID_PROTOCOL_ANALYSER}=="?*", TAG+="uaccess"
LABEL="uaccess_end" LABEL="uaccess_end"