mirror of
https://github.com/systemd/systemd.git
synced 2024-11-26 19:53:45 +08:00
add udev rules for trezor hw wallet devices
This commit is contained in:
parent
ddec353749
commit
2cf425ec57
24
hwdb.d/70-hardware-wallets.hwdb
Normal file
24
hwdb.d/70-hardware-wallets.hwdb
Normal file
@ -0,0 +1,24 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# Database for Hardware Wallets that should be accessible to the seat owner.
|
||||
##
|
||||
# To add local entries, copy this file to
|
||||
# /etc/udev/hwdb.d/
|
||||
# and add your rules there. To load the new rules execute (as root):
|
||||
# systemd-hwdb update
|
||||
# udevadm trigger
|
||||
|
||||
################
|
||||
# Trezor Hardware Wallets
|
||||
################
|
||||
|
||||
# Trezor v1
|
||||
usb:v534Cp0001*
|
||||
ID_HARDWARE_WALLET=1
|
||||
|
||||
# Trezor v2
|
||||
usb:v1209p53C0*
|
||||
ID_HARDWARE_WALLET=1
|
||||
|
||||
usb:v1209p53C1*
|
||||
ID_HARDWARE_WALLET=1
|
@ -29,6 +29,7 @@ hwdb_files_test = files(
|
||||
'70-analyzers.hwdb',
|
||||
'70-av-production.hwdb',
|
||||
'70-cameras.hwdb',
|
||||
'70-hardware-wallets.hwdb',
|
||||
'70-joystick.hwdb',
|
||||
'70-mouse.hwdb',
|
||||
'70-pda.hwdb',
|
||||
|
@ -174,6 +174,7 @@ def property_grammar():
|
||||
('ID_INPUT_TOUCHSCREEN', id_input_setting),
|
||||
('ID_INPUT_TRACKBALL', id_input_setting),
|
||||
('ID_SIGNAL_ANALYZER', Or((Literal('0'), Literal('1')))),
|
||||
('ID_HARDWARE_WALLET', Or((Literal('0'), Literal('1')))),
|
||||
('POINTINGSTICK_SENSITIVITY', INTEGER),
|
||||
('ID_INPUT_JOYSTICK_INTEGRATION', Or(('internal', 'external'))),
|
||||
('ID_INPUT_TOUCHPAD_INTEGRATION', Or(('internal', 'external'))),
|
||||
|
@ -99,4 +99,8 @@ SUBSYSTEM=="hidraw", ENV{ID_AV_PRODUCTION_CONTROLLER}=="1", TAG+="uaccess"
|
||||
# This also allows accessing HID devices with the libusb backend of hidapi.
|
||||
SUBSYSTEM=="usb", ENV{ID_AV_PRODUCTION_CONTROLLER}=="1", TAG+="uaccess"
|
||||
|
||||
# Hardware wallets
|
||||
SUBSYSTEM=="usb", ENV{ID_HARDWARE_WALLET}=="1", TAG+="uaccess"
|
||||
SUBSYSTEM=="hidraw", ENV{ID_HARDWARE_WALLET}=="1", TAG+="uaccess"
|
||||
|
||||
LABEL="uaccess_end"
|
||||
|
Loading…
Reference in New Issue
Block a user