2009-06-16 19:43:12 +04:00
# do not edit this file, it will be overwritten on update
2010-03-07 15:47:34 +03:00
# Do not use ACL_MANAGE outside of this file. This variable is private to
# udev-acl of this udev release and may be replaced at any time.
2009-06-16 19:43:12 +04:00
ENV{MAJOR}=="", GOTO="acl_end"
ACTION!="add|change", GOTO="acl_apply"
# PTP/MTP protocol devices, cameras, portable media players
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", IMPORT{program}="usb_id --export %p"
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", ENV{ACL_MANAGE}="1"
# digicams with proprietary protocol
ENV{ID_GPHOTO2}=="*?", ENV{ACL_MANAGE}="1"
# SCSI scanners
KERNEL=="sg[0-9]*", ATTRS{type}=="6", ENV{ACL_MANAGE}="1"
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", ENV{ACL_MANAGE}="1"
# USB scanners
ENV{libsane_matched}=="yes", ENV{ACL_MANAGE}="1"
2009-06-19 16:49:35 +04:00
# HPLIP devices (necessary for ink level check and HP tool maintenance)
ENV{ID_HPLIP}=="1", ENV{ACL_MANAGE}="1"
2009-06-16 19:43:12 +04:00
# optical drives
SUBSYSTEM=="block", ENV{ID_CDROM}=="1", ENV{ACL_MANAGE}="1"
# sound devices
SUBSYSTEM=="sound", ENV{ACL_MANAGE}="1"
# sound jack-sense
SUBSYSTEM=="input", SUBSYSTEMS=="sound", ENV{ACL_MANAGE}="1"
# webcams, frame grabber, TV cards
SUBSYSTEM=="video4linux", ENV{ACL_MANAGE}="1"
SUBSYSTEM=="dvb", ENV{ACL_MANAGE}="1"
2010-01-07 18:17:22 +03:00
# IIDC devices: industrial cameras and some webcams
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", ENV{ACL_MANAGE}="1"
# AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", ENV{ACL_MANAGE}="1"
# old style firewire devices
KERNEL=="dv1394-[0-9]*", ENV{ACL_MANAGE}="1"
KERNEL=="video1394-[0-9]*", ENV{ACL_MANAGE}="1"
2009-06-16 19:43:12 +04:00
# fingerprint readers
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="2016", ENV{ACL_MANAGE}="1"
2010-01-19 23:31:27 +03:00
# GPS devices
# Garmin GPSMap 60
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", ENV{ACL_MANAGE}="1"
2009-06-16 19:43:12 +04:00
# DRI video devices
SUBSYSTEM=="drm", KERNEL=="card*", ENV{ACL_MANAGE}="1"
# KVM
SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1"
2009-07-03 16:57:43 +04:00
# smart-card readers
ENV{ID_SMARTCARD_READER}=="*?", ENV{ACL_MANAGE}="1"
2009-07-28 00:59:44 +04:00
# joysticks
2009-11-30 20:46:51 +03:00
SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ACL_MANAGE}="1"
2009-07-28 00:59:44 +04:00
2009-12-10 23:01:05 +03:00
# smart phones
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", ENV{ACL_MANAGE}="1"
2010-01-14 18:12:19 +03:00
# color measurement devices
ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1"
2009-06-16 19:43:12 +04:00
# apply ACL for all locally logged in users
2010-03-04 02:48:59 +03:00
LABEL="acl_apply", ENV{ACL_MANAGE}=="1", TEST=="/var/run/ConsoleKit/database", \
2009-06-16 19:43:12 +04:00
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
LABEL="acl_end"