50-udev-default.rules 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # do not edit this file, it will be overwritten on update
  2. # run a command on remove events
  3. ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
  4. ACTION=="remove", GOTO="default_end"
  5. SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
  6. # select "system RTC" or just use the first one
  7. SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
  8. SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
  9. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
  10. ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
  11. ACTION!="add", GOTO="default_end"
  12. SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
  13. SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
  14. SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
  15. SUBSYSTEM=="tty", KERNEL=="sclp_line[0-9]*", GROUP="tty", MODE="0620"
  16. SUBSYSTEM=="tty", KERNEL=="ttysclp[0-9]*", GROUP="tty", MODE="0620"
  17. SUBSYSTEM=="tty", KERNEL=="3270/tty[0-9]*", GROUP="tty", MODE="0620"
  18. SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
  19. KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
  20. SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
  21. SUBSYSTEM=="input", GROUP="input"
  22. SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664"
  23. SUBSYSTEM=="video4linux", GROUP="video"
  24. SUBSYSTEM=="graphics", GROUP="video"
  25. SUBSYSTEM=="drm", KERNEL!="renderD*", GROUP="video"
  26. SUBSYSTEM=="dvb", GROUP="video"
  27. SUBSYSTEM=="media", GROUP="video"
  28. SUBSYSTEM=="cec", GROUP="video"
  29. SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="render", MODE="0660"
  30. SUBSYSTEM=="kfd", GROUP="render", MODE="0660"
  31. # When using static_node= with non-default permissions, also update
  32. # tmpfiles.d/static-nodes-permissions.conf.in to keep permissions synchronized.
  33. SUBSYSTEM=="sound", GROUP="audio", \
  34. OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
  35. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
  36. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
  37. SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
  38. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
  39. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
  40. KERNEL=="parport[0-9]*", GROUP="lp"
  41. SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
  42. SUBSYSTEM=="ppdev", GROUP="lp"
  43. KERNEL=="lp[0-9]*", GROUP="lp"
  44. KERNEL=="irlpt[0-9]*", GROUP="lp"
  45. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
  46. SUBSYSTEM=="block", GROUP="disk"
  47. SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom"
  48. SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
  49. KERNEL=="sch[0-9]*", GROUP="cdrom"
  50. KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
  51. KERNEL=="pktcdvd", GROUP="cdrom"
  52. SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
  53. SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
  54. KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
  55. KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
  56. KERNEL=="btrfs-control", GROUP="disk"
  57. KERNEL=="rawctl", GROUP="disk"
  58. SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
  59. SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
  60. SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
  61. KERNEL=="rfkill", MODE="0664"
  62. KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
  63. KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
  64. # The static_node is required on s390x and ppc (they are using MODULE_ALIAS)
  65. KERNEL=="kvm", GROUP="kvm", MODE="0660", OPTIONS+="static_node=kvm"
  66. KERNEL=="udmabuf", GROUP="kvm"
  67. SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
  68. LABEL="default_end"