~ubuntu-branches/ubuntu/trusty/udev-extras/trusty

« back to all changes in this revision

Viewing changes to udev-acl/70-acl.rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-06 17:14:38 UTC
  • Revision ID: james.westby@ubuntu.com-20090606171438-rxp3so6n3y55s2e4
Tags: 20090606+1-1
* Update to git 5a9ab80:
  - Auto-ACL handling for libgphoto cameras and /dev/kvm.
  - Add model/vendor descriptions for PCI & USB net/tty devices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", IMPORT{program}="usb_id --export %p"
8
8
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", ENV{ACL_MANAGE}="1"
9
9
 
 
10
# digicams with proprietary protocol
 
11
ENV{ID_GPHOTO2}=="*?", ENV{ACL_MANAGE}="1"
 
12
 
10
13
# SCSI scanners
11
14
KERNEL=="sg[0-9]*", ATTRS{type}=="6", ENV{ACL_MANAGE}="1"
12
15
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", ENV{ACL_MANAGE}="1"
30
33
# DRI video devices
31
34
SUBSYSTEM=="drm", KERNEL=="card*", ENV{ACL_MANAGE}="1"
32
35
 
 
36
# KVM
 
37
SUBSYSTEM=="misc", KERNEL=="kvm", ENV{ACL_MANAGE}="1"
 
38
 
33
39
# apply ACL for all locally logged in users
34
40
LABEL="acl_apply", ENV{ACL_MANAGE}=="?*", TEST=="/var/run/ConsoleKit/database", \
35
41
  RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"