mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
d45ee2f31a
Add a fido_id program meant to be run for devices in the hidraw subsystem via an IMPORT directive. The program parses the HID report descriptor and assigns the ID_SECURITY_TOKEN environment variable if a declared usage matches the FIDO_CTAPHID_USAGE declared in the FIDO CTAP specification. This replaces the previous approach of whitelisting all known security token models manually. This commit is accompanied by a test suite and a fuzzer target for the descriptor parsing routine. Fixes: #11996.
47 lines
1.1 KiB
Meson
47 lines
1.1 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
rules = files('''
|
|
60-block.rules
|
|
60-cdrom_id.rules
|
|
60-drm.rules
|
|
60-evdev.rules
|
|
60-fido-id.rules
|
|
60-input-id.rules
|
|
60-persistent-alsa.rules
|
|
60-persistent-input.rules
|
|
60-persistent-storage.rules
|
|
60-persistent-storage-tape.rules
|
|
60-persistent-v4l.rules
|
|
60-sensor.rules
|
|
60-serial.rules
|
|
70-joystick.rules
|
|
70-mouse.rules
|
|
70-touchpad.rules
|
|
75-net-description.rules
|
|
75-probe_mtd.rules
|
|
78-sound-card.rules
|
|
80-drivers.rules
|
|
80-net-setup-link.rules
|
|
'''.split())
|
|
|
|
install_data(rules,
|
|
install_dir : udevrulesdir)
|
|
|
|
all_rules = rules
|
|
|
|
rules_in = '''
|
|
50-udev-default.rules
|
|
64-btrfs.rules
|
|
99-systemd.rules
|
|
'''.split()
|
|
|
|
foreach file : rules_in
|
|
gen = configure_file(
|
|
input : file + '.in',
|
|
output : file,
|
|
configuration : substs)
|
|
install_data(gen,
|
|
install_dir : udevrulesdir)
|
|
all_rules += gen
|
|
endforeach
|