summaryrefslogtreecommitdiffstats
path: root/udev-acl/70-acl.rules
blob: c73ae909357a6fee56944b05636aa0134728e313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# do not edit this file, it will be overwritten on update

# support for the following ACL "tags" get merged
# ACL_CDROM
# ACL_SCANNER
# ACL_AUDIO
# ACL_PHOTO
# ACL_MEDIA
# ACL_AUTH

ACTION!="add|change", GOTO="acl_end"

# will be removed when 2.6.29 is out
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", WAIT_FOR_SYSFS="descriptors"

# match PTP protocol devices
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", IMPORT{program}="usbdev_id %p"
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", ENV{ACL_PHOTO}="1"

# SCSI scanners
KERNEL=="sg[0-9]*", ATTRS{type}=="3|6", ENV{ACL_SCANNER}="1"

# USB scanners
ENV{libsane_matched}=="yes", ENV{ACL_SCANNER}="1"

# optical drives
SUBSYSTEM=="block", ENV{ID_CDROM}=="1", ENV{ACL_CDROM}="1"

# sound devices
SUBSYSTEM=="sound", ENV{ACL_AUDIO}="1"

# webcams
SUBSYSTEM=="video4linux", ENV{ACL_VIDEO}="1"

# fingerprint readers
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="2016", ENV{ACL_AUTH}="1"

LABEL="acl_end"