3
0

mdev_fat.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #
  2. # This is a sample mdev.conf
  3. #
  4. # Provide user, group, and mode information for devices. If a regex matches
  5. # the device name provided by sysfs, use the appropriate user:group and mode
  6. # instead of the default 0:0 660.
  7. #
  8. # Syntax:
  9. # [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...]
  10. #
  11. # =: move, >: move and create a symlink
  12. # @|$|*: run $cmd on delete, @cmd on create, *cmd on both
  13. # support module loading on hotplug
  14. $MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
  15. # null may already exist; therefore ownership has to be changed with command
  16. null root:root 666 @chmod 666 $MDEV
  17. zero root:root 666
  18. full root:root 666
  19. random root:root 444
  20. urandom root:root 444
  21. hwrandom root:root 444
  22. grsec root:root 660
  23. kmem root:root 640
  24. mem root:root 640
  25. port root:root 640
  26. # console may already exist; therefore ownership has to be changed with command
  27. console root:tty 600 @chmod 600 $MDEV
  28. ptmx root:tty 666
  29. pty.* root:tty 660
  30. # Typical devices
  31. tty root:tty 666
  32. tty[0-9]* root:tty 660
  33. vcsa*[0-9]* root:tty 660
  34. ttyS[0-9]* root:uucp 660
  35. # block devices
  36. ram([0-9]*) root:disk 660 >rd/%1
  37. loop([0-9]+) root:disk 660 >loop/%1
  38. sd[a-z].* root:disk 660 */lib/mdev/usbdisk_link
  39. hd[a-z][0-9]* root:disk 660 */lib/mdev/ide_links
  40. md[0-9]* root:disk 660
  41. sr[0-9]* root:cdrom 660 @ln -sf $MDEV cdrom
  42. fd[0-9]* root:floppy 660
  43. # net devices
  44. -net/.* root:root 600 @nameif
  45. tun[0-9]* root:root 600 =net/
  46. tap[0-9]* root:root 600 =net/
  47. # alsa sound devices and audio stuff
  48. pcm.* root:audio 660 =snd/
  49. control.* root:audio 660 =snd/
  50. midi.* root:audio 660 =snd/
  51. seq root:audio 660 =snd/
  52. timer root:audio 660 =snd/
  53. adsp root:audio 660 >sound/
  54. audio root:audio 660 >sound/
  55. dsp root:audio 660 >sound/
  56. mixer root:audio 660 >sound/
  57. sequencer.* root:audio 660 >sound/
  58. # Less typical devices
  59. # raid controllers
  60. cciss!(.*) root:disk 660 =cciss/%1
  61. ida!(.*) root:disk 660 =ida/%1
  62. rd!(.*) root:disk 660 =rd/%1
  63. ttyLTM[0-9] root:dialout 660 @ln -sf $MDEV modem
  64. ttySHSF[0-9] root:dialout 660 @ln -sf $MDEV modem
  65. slamr root:dialout 660 @ln -sf $MDEV slamr0
  66. slusb root:dialout 660 @ln -sf $MDEV slusb0
  67. fuse root:root 666
  68. # dri device
  69. card[0-9] root:video 660 =dri/
  70. # misc stuff
  71. agpgart root:root 660 >misc/
  72. psaux root:root 660 >misc/
  73. rtc root:root 664 >misc/
  74. # input stuff
  75. event[0-9]+ root:root 640 =input/
  76. mice root:root 640 =input/
  77. mouse[0-9] root:root 640 =input/
  78. ts[0-9] root:root 600 =input/
  79. # v4l stuff
  80. vbi[0-9] root:video 660 >v4l/
  81. video[0-9] root:video 660 >v4l/
  82. # dvb stuff
  83. dvb.* root:video 660 */lib/mdev/dvbdev
  84. # load drivers for usb devices
  85. usbdev[0-9].[0-9] root:root 660 */lib/mdev/usbdev
  86. usbdev[0-9].[0-9]_.* root:root 660
  87. # zaptel devices
  88. zap(.*) root:dialout 660 =zap/%1
  89. dahdi!(.*) root:dialout 660 =dahdi/%1