70-uaccess.rules 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. ACTION=="remove", GOTO="uaccess_end"
  8. ENV{MAJOR}=="", GOTO="uaccess_end"
  9. # PTP/MTP protocol devices, cameras, portable media players
  10. SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="uaccess"
  11. # Digicams with proprietary protocol
  12. ENV{ID_GPHOTO2}=="?*", TAG+="uaccess"
  13. # SCSI and USB scanners
  14. ENV{libsane_matched}=="yes", TAG+="uaccess"
  15. # HPLIP devices (necessary for ink level check and HP tool maintenance)
  16. ENV{ID_HPLIP}=="1", TAG+="uaccess"
  17. # optical drives
  18. SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="uaccess"
  19. SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="uaccess"
  20. # Sound devices
  21. SUBSYSTEM=="sound", TAG+="uaccess" \
  22. OPTIONS+="static_node=snd/timer", OPTIONS+="static_node=snd/seq"
  23. # ffado is an userspace driver for firewire sound cards
  24. SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="uaccess"
  25. # Webcams, frame grabber, TV cards
  26. SUBSYSTEM=="video4linux", TAG+="uaccess"
  27. SUBSYSTEM=="dvb", TAG+="uaccess"
  28. # IIDC devices: industrial cameras and some webcams
  29. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", TAG+="uaccess"
  30. SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", TAG+="uaccess"
  31. # AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
  32. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="uaccess"
  33. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
  34. # DRI video devices
  35. SUBSYSTEM=="drm", KERNEL=="card*|renderD*", TAG+="uaccess"
  36. # KVM
  37. SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"
  38. # smart-card readers
  39. ENV{ID_SMARTCARD_READER}=="?*", TAG+="uaccess"
  40. # (USB) authentication devices
  41. ENV{ID_SECURITY_TOKEN}=="?*", TAG+="uaccess"
  42. # PDA devices
  43. ENV{ID_PDA}=="?*", TAG+="uaccess"
  44. # Programmable remote control
  45. ENV{ID_REMOTE_CONTROL}=="1", TAG+="uaccess"
  46. # joysticks
  47. SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="uaccess"
  48. # color measurement devices
  49. ENV{COLOR_MEASUREMENT_DEVICE}=="?*", TAG+="uaccess"
  50. # DDC/CI device, usually high-end monitors such as the DreamColor
  51. ENV{DDC_DEVICE}=="?*", TAG+="uaccess"
  52. # media player raw devices (for user-mode drivers, Android SDK, etc.)
  53. SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"
  54. # software-defined radio communication devices
  55. ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
  56. LABEL="uaccess_end"