1 # This file is part of systemd.
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
8 ACTION=="remove", GOTO="uaccess_end"
9 ENV{MAJOR}=="", GOTO="uaccess_end"
11 # PTP/MTP protocol devices, cameras, portable media players
12 SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="uaccess"
14 # Digicams with proprietary protocol
15 ENV{ID_GPHOTO2}=="*?", TAG+="uaccess"
17 # SCSI and USB scanners
18 ENV{libsane_matched}=="yes", TAG+="uaccess"
20 # HPLIP devices (necessary for ink level check and HP tool maintenance)
21 ENV{ID_HPLIP}=="1", TAG+="uaccess"
24 SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="uaccess"
25 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="uaccess"
28 SUBSYSTEM=="sound", TAG+="uaccess"
30 # ffado is an userspace driver for firewire sound cards
31 SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="uaccess"
33 # Webcams, frame grabber, TV cards
34 SUBSYSTEM=="video4linux", TAG+="uaccess"
35 SUBSYSTEM=="dvb", TAG+="uaccess"
37 # IIDC devices: industrial cameras and some webcams
38 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", TAG+="uaccess"
39 SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", TAG+="uaccess"
40 # AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
41 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="uaccess"
42 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
45 SUBSYSTEM=="drm", KERNEL=="card*", TAG+="uaccess"
48 SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"
51 ENV{ID_SMARTCARD_READER}=="*?", TAG+="uaccess"
53 # (USB) authentication devices
54 ENV{ID_SECURITY_TOKEN}=="*?", TAG+="uaccess"
57 ENV{ID_PDA}=="*?", TAG+="uaccess"
59 # Programmable remote control
60 ENV{ID_REMOTE_CONTROL}=="1", TAG+="uaccess"
63 SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="uaccess"
65 # color measurement devices
66 ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="uaccess"
68 # DDC/CI device, usually high-end monitors such as the DreamColor
69 ENV{DDC_DEVICE}=="*?", TAG+="uaccess"
71 # media player raw devices (for user-mode drivers, Android SDK, etc.)
72 SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"