home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / lib / udev / rules.d / 70-acl.rules < prev    next >
Encoding:
Text File  |  2010-12-12  |  2.8 KB  |  85 lines

  1. # do not edit this file, it will be overwritten on update
  2.  
  3. # Do not use TAG+="udev-acl" outside of this file. This variable is private to
  4. # udev-acl of this udev release and may be replaced at any time.
  5.  
  6. ENV{MAJOR}=="", GOTO="acl_end"
  7. ACTION=="remove", GOTO="acl_apply"
  8.  
  9. # PTP/MTP protocol devices, cameras, portable media players
  10. SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="", ENV{DEVTYPE}=="usb_device", IMPORT{program}="usb_id --export %p"
  11. SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="udev-acl"
  12.  
  13. # digicams with proprietary protocol
  14. ENV{ID_GPHOTO2}=="*?", TAG+="udev-acl"
  15.  
  16. # SCSI and USB scanners
  17. ENV{libsane_matched}=="yes", TAG+="udev-acl"
  18.  
  19. # HPLIP devices (necessary for ink level check and HP tool maintenance)
  20. ENV{ID_HPLIP}=="1", TAG+="udev-acl"
  21.  
  22. # optical drives
  23. SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="udev-acl"
  24.  
  25. # sound devices
  26. SUBSYSTEM=="sound", TAG+="udev-acl"
  27. # sound jack-sense
  28. SUBSYSTEM=="input", SUBSYSTEMS=="sound", TAG+="udev-acl"
  29. # ffado is an userspace driver for firewire sound cards
  30. SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="udev-acl"
  31.  
  32. # webcams, frame grabber, TV cards
  33. SUBSYSTEM=="video4linux", TAG+="udev-acl"
  34. SUBSYSTEM=="dvb", TAG+="udev-acl"
  35.  
  36. # IIDC devices: industrial cameras and some webcams
  37. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*",  TAG+="udev-acl"
  38. SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*",  TAG+="udev-acl"
  39. # AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
  40. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="udev-acl"
  41. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="udev-acl"
  42.  
  43. # old style firewire devices
  44. KERNEL=="dv1394-[0-9]*", TAG+="udev-acl"
  45. KERNEL=="video1394-[0-9]*", TAG+="udev-acl"
  46.  
  47. # DRI video devices
  48. SUBSYSTEM=="drm", KERNEL=="card*", TAG+="udev-acl"
  49.  
  50. # KVM
  51. SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="udev-acl"
  52.  
  53. # smart-card readers
  54. ENV{ID_SMARTCARD_READER}=="*?", TAG+="udev-acl"
  55.  
  56. # PDA devices
  57. ENV{ID_PDA}=="*?", TAG+="udev-acl"
  58.  
  59. # joysticks
  60. SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="udev-acl"
  61.  
  62. # color measurement devices
  63. ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="udev-acl"
  64.  
  65. # DDC/CI device, usually high-end monitors such as the DreamColor
  66. ENV{DDC_DEVICE}=="*?", TAG+="udev-acl"
  67.  
  68. # media player raw devices (for user-mode drivers, Android SDK, etc.)
  69. SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="udev-acl"
  70.  
  71. LABEL="acl_apply"
  72.  
  73. # workaround to support buggy packages which use the old interface
  74. ENV{ACL_MANAGE}=="1", TAG+="udev-acl"
  75.  
  76. # Glib is not declared as a package dependency, so check that it is actually
  77. # installed before running udev-acl.
  78. TEST!="/lib/libglib-2.0.so.0", GOTO="acl_end"
  79.  
  80. # apply ACL for all locally logged in users
  81. TAG=="udev-acl", TEST=="/var/run/ConsoleKit/database", \
  82.   RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
  83.  
  84. LABEL="acl_end"
  85.