carbon-config

config submodule of carbon-core-system
git clone https://ccx.te2000.cz/git/carbon-config
Log | Files | Refs

mdevd.conf (3625B)


      1 #
      2 # This is a sample mdev.conf.
      3 #
      4 
      5 # Devices:
      6 # Syntax: %s %d:%d %s
      7 # devices user:group mode
      8 
      9 $MODALIAS=.*	root:root	0660	@modprobe -q -b "$MODALIAS"
     10 
     11 # null does already exist; therefore ownership has to be changed with command
     12 null	root:root 0666	@chmod 666 $MDEV
     13 zero	root:root 0666
     14 grsec	root:root 0660
     15 full	root:root 0666
     16 
     17 random	root:root 0666
     18 urandom	root:root 0444
     19 hwrandom root:root 0660
     20 
     21 console root:tty 0600
     22 
     23 # load frambuffer console when first frambuffer is found
     24 fb0	root:video 0660 @modprobe -q -b fbcon
     25 vchiq	root:video 0660
     26 
     27 fd0	root:floppy 0660
     28 kmem	root:root 0640
     29 mem	root:root 0640
     30 port	root:root 0640
     31 ptmx	root:tty 0666
     32 
     33 # Kernel-based Virtual Machine.
     34 kvm		root:kvm 660
     35 
     36 # ram.*
     37 ram([0-9]*)	root:disk 0660 >rd/%1
     38 loop([0-9]+)	root:disk 0660 >loop/%1
     39 
     40 # persistent storage
     41 dasd.*		root:disk 0660 */lib/mdev/persistent-storage
     42 mmcblk.*	root:disk 0660 */lib/mdev/persistent-storage
     43 nbd.*		root:disk 0660 */lib/mdev/persistent-storage
     44 nvme.*		root:disk 0660 */lib/mdev/persistent-storage
     45 sd[a-z].*	root:disk 0660 */lib/mdev/persistent-storage
     46 sr[0-9]+	root:cdrom 0660 */lib/mdev/persistent-storage
     47 vd[a-z].*	root:disk 0660 */lib/mdev/persistent-storage
     48 xvd[a-z].*	root:disk 0660 */lib/mdev/persistent-storage
     49 
     50 md[0-9]		root:disk 0660
     51 
     52 tty		root:tty 0666
     53 tty[0-9]	root:root 0600
     54 tty[0-9][0-9]	root:tty 0660
     55 ttyS[0-9]*	root:uucp 0660
     56 pty.*		root:tty 0660
     57 vcs[0-9]*	root:tty 0660
     58 vcsa[0-9]*	root:tty 0660
     59 
     60 # rpi bluetooth
     61 #ttyAMA0	root:tty 660 @btattach -B /dev/$MDEV -P bcm -S 115200 -N &
     62 
     63 ttyACM[0-9]	root:dialout 0660 @ln -sf $MDEV modem
     64 ttyUSB[0-9]	root:dialout 0660 @ln -sf $MDEV modem
     65 ttyLTM[0-9]	root:dialout 0660 @ln -sf $MDEV modem
     66 ttySHSF[0-9]	root:dialout 0660 @ln -sf $MDEV modem
     67 slamr		root:dialout 0660 @ln -sf $MDEV slamr0
     68 slusb		root:dialout 0660 @ln -sf $MDEV slusb0
     69 fuse		root:root  0666
     70 
     71 # dri device
     72 dri/.*		root:video 0660
     73 card[0-9]	root:video 0660 =dri/
     74 
     75 # alsa sound devices and audio stuff
     76 pcm.*		root:audio 0660	=snd/
     77 control.*	root:audio 0660	=snd/
     78 midi.*		root:audio 0660	=snd/
     79 seq		root:audio 0660	=snd/
     80 timer		root:audio 0660	=snd/
     81 
     82 adsp		root:audio 0660 >sound/
     83 audio		root:audio 0660 >sound/
     84 dsp		root:audio 0660 >sound/
     85 mixer		root:audio 0660 >sound/
     86 sequencer.*	root:audio 0660 >sound/
     87 
     88 SUBSYSTEM=sound;.*	root:audio 0660
     89 
     90 # PTP devices
     91 ptp[0-9]	root:root 0660 */lib/mdev/ptpdev
     92 
     93 # virtio-ports
     94 SUBSYSTEM=virtio-ports;vport.* root:root 0600 @mkdir -p virtio-ports; ln -sf ../$MDEV virtio-ports/$(cat /sys/class/virtio-ports/$MDEV/name)
     95 
     96 # misc stuff
     97 agpgart		root:root 0660  >misc/
     98 psaux		root:root 0660  >misc/
     99 rtc		root:root 0664  >misc/
    100 
    101 # input stuff
    102 event[0-9]+	root:input 0640 =input/
    103 mice		root:input 0640 =input/
    104 mouse[0-9]	root:input 0640 =input/
    105 js[0-9]		root:input 0640 =input/
    106 ts[0-9]		root:input 0600 =input/
    107 
    108 # v4l stuff
    109 vbi[0-9]	root:video 0660 >v4l/
    110 video[0-9]+	root:video 0660 >v4l/
    111 
    112 # dvb stuff
    113 dvb.*		root:video 0660 */lib/mdev/dvbdev
    114 
    115 # load drivers for usb devices
    116 usb[0-9]+	root:root 0660 */lib/mdev/usbdev
    117 
    118 # net devices
    119 # 666 is fine: https://www.kernel.org/doc/Documentation/networking/tuntap.txt
    120 net/tun[0-9]*	root:netdev 0666
    121 net/tap[0-9]*	root:netdev 0666
    122 
    123 # zaptel devices
    124 zap(.*)		root:dialout 0660 =zap/%1
    125 dahdi!(.*)	root:dialout 0660 =dahdi/%1
    126 dahdi/(.*)	root:dialout 0660 =dahdi/%1
    127 
    128 # raid controllers
    129 cciss!(.*)	root:disk 0660 =cciss/%1
    130 cciss/(.*)	root:disk 0660 =cciss/%1
    131 ida!(.*)	root:disk 0660 =ida/%1
    132 ida/(.*)	root:disk 0660 =ida/%1
    133 rd!(.*)		root:disk 0660 =rd/%1
    134 rd/(.*)		root:disk 0660 =rd/%1
    135 
    136 # tape devices
    137 nst[0-9]+.*	root:tape 0660
    138 st[0-9]+.*	root:tape 0660
    139 
    140 # fallback for any!device -> any/device
    141 (.*)!(.*)	root:root 0660 =%1/%2