SHARE
TWEET

Untitled

a guest Jun 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 scanners
  17. KERNEL=="sg[0-9]*", ATTRS{type}=="6", TAG+="udev-acl"
  18. KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP|EPSON|Epson", TAG+="udev-acl"
  19.  
  20. # USB scanners
  21. ENV{libsane_matched}=="yes", TAG+="udev-acl"
  22.  
  23. # HPLIP devices (necessary for ink level check and HP tool maintenance)
  24. ENV{ID_HPLIP}=="1", TAG+="udev-acl"
  25.  
  26. # optical drives
  27. SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="udev-acl"
  28.  
  29. # sound devices
  30. SUBSYSTEM=="sound", TAG+="udev-acl"
  31. # sound jack-sense
  32. SUBSYSTEM=="input", SUBSYSTEMS=="sound", TAG+="udev-acl"
  33.  
  34. # webcams, frame grabber, TV cards
  35. SUBSYSTEM=="video4linux", TAG+="udev-acl"
  36. SUBSYSTEM=="dvb", TAG+="udev-acl"
  37.  
  38. # IIDC devices: industrial cameras and some webcams
  39. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*",  TAG+="udev-acl"
  40. # AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
  41. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", 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. # fingerprint readers
  48. SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="2016", TAG+="udev-acl"
  49.  
  50. # GPS devices
  51.  # Garmin GPSMap 60
  52. SUBSYSTEM=="usb", ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", TAG+="udev-acl"
  53.  
  54.  
  55. # DRI video devices
  56. SUBSYSTEM=="drm", KERNEL=="card*", TAG+="udev-acl"
  57.  
  58. # KVM
  59. SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="udev-acl"
  60.  
  61. # smart-card readers
  62. ENV{ID_SMARTCARD_READER}=="*?", TAG+="udev-acl"
  63.  
  64. # joysticks
  65. SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="udev-acl"
  66.  
  67. # smart phones
  68. SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", TAG+="udev-acl"
  69.  
  70. # color measurement devices
  71. ENV{COLOR_MEASUREMENT_DEVICE}=="*?", TAG+="udev-acl"
  72.  
  73. LABEL="acl_apply"
  74.  
  75. ENV{ACL_MANAGE}!="1", GOTO="acl_end"
  76.  
  77. # Glib is not declared as a package dependency, so check that it is actually
  78. # installed before running udev-acl.
  79. TEST!="/lib/libglib-2.0.so.0", GOTO="acl_end"
  80.  
  81. # apply ACL for all locally logged in users
  82. TEST=="/var/run/ConsoleKit/database", \
  83.   RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
  84.  
  85. LABEL="acl_end"
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top