]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/login/70-uaccess.rules.m4
resolved: rework parsing of /etc/hosts
[thirdparty/systemd.git] / src / login / 70-uaccess.rules.m4
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 ACTION=="remove", GOTO="uaccess_end"
11 ENV{MAJOR}=="", GOTO="uaccess_end"
12
13 # PTP/MTP protocol devices, cameras, portable media players
14 SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="uaccess"
15
16 # Digicams with proprietary protocol
17 ENV{ID_GPHOTO2}=="?*", TAG+="uaccess"
18
19 # SCSI and USB scanners
20 ENV{libsane_matched}=="yes", TAG+="uaccess"
21
22 # HPLIP devices (necessary for ink level check and HP tool maintenance)
23 ENV{ID_HPLIP}=="1", TAG+="uaccess"
24
25 # optical drives
26 SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="uaccess"
27 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="uaccess"
28
29 # Sound devices
30 SUBSYSTEM=="sound", TAG+="uaccess", \
31 OPTIONS+="static_node=snd/timer", OPTIONS+="static_node=snd/seq"
32
33 # ffado is an userspace driver for firewire sound cards
34 SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="uaccess"
35
36 # Webcams, frame grabber, TV cards
37 SUBSYSTEM=="video4linux", TAG+="uaccess"
38 SUBSYSTEM=="dvb", TAG+="uaccess"
39
40 # IIDC devices: industrial cameras and some webcams
41 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", TAG+="uaccess"
42 SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", TAG+="uaccess"
43 # AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
44 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="uaccess"
45 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
46
47 # DRI video devices
48 SUBSYSTEM=="drm", KERNEL=="card*", TAG+="uaccess"
49 m4_ifdef(`DEV_KVM_UACCESS',``
50 # KVM
51 SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"''
52 )m4_dnl
53
54 # smart-card readers
55 ENV{ID_SMARTCARD_READER}=="?*", TAG+="uaccess"
56
57 # (USB) authentication devices
58 ENV{ID_SECURITY_TOKEN}=="?*", TAG+="uaccess"
59
60 # PDA devices
61 ENV{ID_PDA}=="?*", TAG+="uaccess"
62
63 # Programmable remote control
64 ENV{ID_REMOTE_CONTROL}=="1", TAG+="uaccess"
65
66 # joysticks
67 SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="uaccess"
68
69 # color measurement devices
70 ENV{COLOR_MEASUREMENT_DEVICE}=="?*", TAG+="uaccess"
71
72 # DDC/CI device, usually high-end monitors such as the DreamColor
73 ENV{DDC_DEVICE}=="?*", TAG+="uaccess"
74
75 # media player raw devices (for user-mode drivers, Android SDK, etc.)
76 SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"
77
78 # software-defined radio communication devices
79 ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
80
81 # 3D printers, CNC machines, laser cutters, 3D scanners, etc.
82 ENV{ID_MAKER_TOOL}=="?*", TAG+="uaccess"
83
84 LABEL="uaccess_end"