70-uaccess.rules 2.7 KB

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