• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10ACTION=="remove", GOTO="uaccess_end"
11ENV{MAJOR}=="", GOTO="uaccess_end"
12
13# PTP/MTP protocol devices, cameras, portable media players
14SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="uaccess"
15
16# Digicams with proprietary protocol
17ENV{ID_GPHOTO2}=="?*", TAG+="uaccess"
18
19# SCSI and USB scanners
20ENV{libsane_matched}=="yes", TAG+="uaccess"
21
22# HPLIP devices (necessary for ink level check and HP tool maintenance)
23ENV{ID_HPLIP}=="1", TAG+="uaccess"
24
25# optical drives
26SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="uaccess"
27SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="uaccess"
28
29# Sound devices
30SUBSYSTEM=="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
34SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="uaccess"
35
36# Webcams, frame grabber, TV cards
37SUBSYSTEM=="video4linux", TAG+="uaccess"
38SUBSYSTEM=="dvb", TAG+="uaccess"
39
40# IIDC devices: industrial cameras and some webcams
41SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*",  TAG+="uaccess"
42SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*",  TAG+="uaccess"
43# AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
44SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="uaccess"
45SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
46
47# DRI video devices
48SUBSYSTEM=="drm", KERNEL=="card*", TAG+="uaccess"
49
50# DRI render nodes
51SUBSYSTEM=="drm", KERNEL=="renderD*", TAG+="uaccess"
52
53# KVM
54SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"
55
56# smart-card readers
57ENV{ID_SMARTCARD_READER}=="?*", TAG+="uaccess"
58
59# (USB) authentication devices
60ENV{ID_SECURITY_TOKEN}=="?*", TAG+="uaccess"
61
62# PDA devices
63ENV{ID_PDA}=="?*", TAG+="uaccess"
64
65# Programmable remote control
66ENV{ID_REMOTE_CONTROL}=="1", TAG+="uaccess"
67
68# joysticks
69SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="uaccess"
70
71# color measurement devices
72ENV{COLOR_MEASUREMENT_DEVICE}=="?*", TAG+="uaccess"
73
74# DDC/CI device, usually high-end monitors such as the DreamColor
75ENV{DDC_DEVICE}=="?*", TAG+="uaccess"
76
77# media player raw devices (for user-mode drivers, Android SDK, etc.)
78SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"
79
80# software-defined radio communication devices
81ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
82
83# 3D printers, CNC machines, laser cutters, 3D scanners, etc.
84ENV{ID_MAKER_TOOL}=="?*", TAG+="uaccess"
85
86LABEL="uaccess_end"
87