2009-06-16 19:43:12 +04:00
# do not edit this file, it will be overwritten on update
2010-04-22 21:03:11 +04:00
# Do not use TAG+="udev-acl" outside of this file. This variable is private to
2010-03-07 15:47:34 +03:00
# 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"
2010-04-12 18:52:41 +04:00
ACTION=="remove", GOTO="acl_apply"
2009-06-16 19:43:12 +04:00
# PTP/MTP protocol devices, cameras, portable media players
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", IMPORT{program}="usb_id --export %p"
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
# digicams with proprietary protocol
2010-04-22 21:03:11 +04:00
ENV{ID_GPHOTO2}=="*?", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
2010-08-18 15:35:25 +04:00
# SCSI and USB scanners
2010-04-22 21:03:11 +04:00
ENV{libsane_matched}=="yes", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
2009-06-19 16:49:35 +04:00
# HPLIP devices (necessary for ink level check and HP tool maintenance)
2010-04-22 21:03:11 +04:00
ENV{ID_HPLIP}=="1", TAG+="udev-acl"
2009-06-19 16:49:35 +04:00
2009-06-16 19:43:12 +04:00
# optical drives
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="udev-acl"
2011-03-07 18:10:50 +03:00
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
# sound devices
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="sound", TAG+="udev-acl"
2010-11-29 14:01:58 +03:00
2010-11-26 17:31:42 +03:00
# ffado is an userspace driver for firewire sound cards
SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
# webcams, frame grabber, TV cards
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="video4linux", TAG+="udev-acl"
SUBSYSTEM=="dvb", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
2010-01-07 18:17:22 +03:00
# IIDC devices: industrial cameras and some webcams
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", TAG+="udev-acl"
2010-07-15 13:38:14 +04:00
SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", TAG+="udev-acl"
2010-01-07 18:17:22 +03:00
# AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="udev-acl"
2010-07-15 13:38:14 +04:00
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="udev-acl"
2010-01-07 18:17:22 +03:00
2009-06-16 19:43:12 +04:00
# DRI video devices
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="drm", KERNEL=="card*", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
# KVM
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
2009-07-03 16:57:43 +04:00
# smart-card readers
2010-04-22 21:03:11 +04:00
ENV{ID_SMARTCARD_READER}=="*?", TAG+="udev-acl"
2009-07-03 16:57:43 +04:00
2010-11-12 17:44:34 +03:00
# PDA devices
ENV{ID_PDA}=="*?", TAG+="udev-acl"
2011-03-17 22:36:20 +03:00
# Programmable remote control
ENV{ID_REMOTE_CONTROL}=="1", TAG+="udev-acl"
2009-07-28 00:59:44 +04:00
# joysticks
2010-04-22 21:03:11 +04:00
SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="udev-acl"
2009-07-28 00:59:44 +04:00
2010-01-14 18:12:19 +03:00
# color measurement devices
2010-04-22 21:03:11 +04:00
ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="udev-acl"
2010-01-14 18:12:19 +03:00
2010-08-09 14:41:18 +04:00
# DDC/CI device, usually high-end monitors such as the DreamColor
ENV{DDC_DEVICE}=="*?", TAG+="udev-acl"
2010-11-22 12:49:12 +03:00
# media player raw devices (for user-mode drivers, Android SDK, etc.)
SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="udev-acl"
2009-06-16 19:43:12 +04:00
# apply ACL for all locally logged in users
2010-04-22 20:33:49 +04:00
LABEL="acl_apply", TAG=="udev-acl", 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"