mdevd.conf 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Configuration based on 'mdev-like-a-boss'.
  2. # https://github.com/slashbeast/mdev-like-a-boss/blob/master/mdev.conf
  3. null root:root 666 @chmod 666 $MDEV
  4. zero root:root 666
  5. full root:root 666
  6. random root:root 444
  7. urandom root:root 444
  8. hwrandom root:root 444
  9. grsec root:root 660
  10. kmem root:root 640
  11. mem root:root 640
  12. port root:root 640
  13. console root:tty 600 @chmod 600 $MDEV
  14. ptmx root:tty 666
  15. pty.* root:tty 660
  16. tty root:tty 666
  17. tty[0-9]* root:tty 660
  18. vcsa*[0-9]* root:tty 660
  19. # Kernel based virtual machine.
  20. kvm root:kvm 660
  21. vhost-net root:kvm 660
  22. # Block devices.
  23. ram([0-9]*) root:disk 660 >rd/%1
  24. loop([0-9]+) root:disk 660 >loop/%1
  25. sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom
  26. fd[0-9]* root:floppy 660
  27. net/tun[0-9]* root:root 666
  28. net/tap[0-9]* root:root 600
  29. fuse root:root 666
  30. agpgart root:root 660 >misc/
  31. psaux root:root 660 >misc/
  32. rtc root:root 664 >misc/
  33. # Audio stuff.
  34. adsp root:audio 660 >sound/
  35. audio root:audio 660 >sound/
  36. dsp root:audio 660 >sound/
  37. mixer root:audio 660 >sound/
  38. sequencer.* root:audio 660 >sound/
  39. snd/.* root:audio 660
  40. # Raid controllers.
  41. cciss!(.*) root:disk 660 =cciss/%1
  42. ida!(.*) root:disk 660 =ida/%1
  43. rd!(.*) root:disk 660 =rd/%1
  44. # Input stuff.
  45. SUBSYSTEM=input;.* root:input 660
  46. # Video stuff.
  47. card[0-9] root:video 660 =dri/
  48. vbi[0-9] root:video 660 >v4l/
  49. video[0-9] root:video 660 >v4l/
  50. dri/.* root:video 660
  51. # Don't create old usbdev* devices.
  52. usbdev[0-9].[0-9]* root:root 660 !
  53. # Stop creating x:x:x:x which looks like /dev/dm-*.
  54. [0-9]+\:[0-9]+\:[0-9]+\:[0-9]+ root:root 660 !
  55. # /dev/cpu support.
  56. microcode root:root 600 =cpu/
  57. cpu([0-9]+) root:root 600 =cpu/%1/cpuid
  58. msr([0-9]+) root:root 600 =cpu/%1/msr