50-udev-default.rules 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # do not edit this file, it will be overwritten on update
  2. KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
  3. KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
  4. KERNEL=="ptmx", GROUP="tty", MODE="0666"
  5. KERNEL=="tty", GROUP="tty", MODE="0666"
  6. KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
  7. KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty"
  8. # serial
  9. KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
  10. KERNEL=="mwave", GROUP="dialout"
  11. KERNEL=="hvc*|hvsi*", GROUP="dialout"
  12. # virtio serial / console ports
  13. KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
  14. # mem
  15. KERNEL=="null|zero|full|random|urandom", MODE="0666"
  16. KERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
  17. # input
  18. KERNEL=="mouse*|mice|event*", MODE="0640"
  19. KERNEL=="ts[0-9]*|uinput", MODE="0640"
  20. KERNEL=="js[0-9]*", MODE="0644"
  21. # video4linux
  22. SUBSYSTEM=="video4linux", GROUP="video"
  23. KERNEL=="vttuner*", GROUP="video"
  24. KERNEL=="vtx*|vbi*", GROUP="video"
  25. KERNEL=="winradio*", GROUP="video"
  26. # graphics
  27. KERNEL=="agpgart", GROUP="video"
  28. KERNEL=="pmu", GROUP="video"
  29. KERNEL=="nvidia*|nvidiactl*", GROUP="video"
  30. SUBSYSTEM=="graphics", GROUP="video"
  31. SUBSYSTEM=="drm", GROUP="video"
  32. # sound
  33. SUBSYSTEM=="sound", GROUP="audio"
  34. # DVB (video)
  35. SUBSYSTEM=="dvb", GROUP="video"
  36. # FireWire (firewire-core driver: IIDC devices, AV/C devices)
  37. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
  38. SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
  39. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
  40. SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
  41. # libusb device nodes
  42. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
  43. # printer
  44. KERNEL=="parport[0-9]*", GROUP="lp"
  45. SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
  46. SUBSYSTEM=="ppdev", GROUP="lp"
  47. SUBSYSTEM=="usb", KERNEL=="lp*", SYMLINK+="usb%k", GROUP="lp"
  48. KERNEL=="lp[0-9]*", GROUP="lp"
  49. KERNEL=="irlpt[0-9]*", GROUP="lp"
  50. # hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
  51. # the ones from the old usblp kernel module
  52. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
  53. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701*:", GROUP="lp", MODE="0664"
  54. # block
  55. SUBSYSTEM=="block", GROUP="disk"
  56. # floppy
  57. SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
  58. # cdrom
  59. SUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n", GROUP="cdrom"
  60. SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
  61. KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
  62. KERNEL=="pktcdvd", GROUP="cdrom"
  63. # tape
  64. KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="tape"
  65. KERNEL=="pt[0-9]*|npt[0-9]*|pht[0-9]*", GROUP="tape"
  66. SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
  67. # block-related
  68. KERNEL=="sch[0-9]*", GROUP="disk"
  69. SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
  70. KERNEL=="pg[0-9]*", GROUP="disk"
  71. KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
  72. KERNEL=="rawctl", GROUP="disk"
  73. SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
  74. SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
  75. SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
  76. # network
  77. KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
  78. KERNEL=="rfkill", MODE="0644"
  79. # CPU
  80. KERNEL=="cpu[0-9]*", MODE="0444"
  81. KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse", \
  82. RUN+="/bin/mount -t fusectl fusectl /sys/fs/fuse/connections"
  83. SUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc"
  84. KERNEL=="mmtimer", MODE="0644"
  85. KERNEL=="rflash[0-9]*", MODE="0400"
  86. KERNEL=="rrom[0-9]*", MODE="0400"