# Provide user, group, and mode information for devices. If a regex matches # the device name provided by sysfs, use the appropriate user:group and mode # instead of the default 0:0 660. # # Syntax: # [-]devicename_regex user:group mode [>|=path] [@|$|*cmd args...] # # Leading minus in 1st field means "don't stop on this line", otherwise # search is stopped after the matching line is encountered. # Leading @ allows specification as @major,minor[-minor2] for disambiguation # # =: move, >: move and create a symlink, !: don't create node # @|$|*: run $cmd on delete, @cmd on create, *cmd on both # null does already exist; therefore ownerchip has to be changed with command null 0:0 0666 @chmod 666 $MDEV zero 0:0 0666 grsec 0:0 0660 full 0:0 0666 random 0:0 0644 urandom 0:0 0644 hwrandom 0:0 0644 # console does already exist; therefore ownerchip has to be changed with command console 0:0 0600 @chmod 600 $MDEV kmem 0:0 0640 mem 0:0 0640 port 0:0 0640 ptmx 0:0 0666 fd0 0:0 0660 # ram.* ram([0-9]+) 0:0 0660 >rd/%1 loop([0-9]+) 0:0 0660 >loop/%1 # sd[a-z][0-9]* 0:0 0660 */lib/mdev/sd_links # hd[a-z][0-9]* 0:0 0660 */lib/mdev/ide_links md[0-9]+ 0:0 0660 tty 0:0 0666 tty[0-9]+ 0:0 0660 ttyS0 0:0 0660 @ln -sf $MDEV com1 ttyS1 0:0 0660 @ln -sf $MDEV com2 ttyS2 0:0 0660 @ln -sf $MDEV com3 ttyS3 0:0 0660 @ln -sf $MDEV com4 ttyS[0-9]+ 0:0 0660 pty.* 0:0 0660 vcsa?[0-9]* 0:0 0660 ttyLTM[0-9] 0:0 0660 @ln -sf $MDEV modem ttySHSF[0-9] 0:0 0660 @ln -sf $MDEV modem slamr 0:0 0660 @ln -sf $MDEV slamr0 slusb 0:0 0660 @ln -sf $MDEV slusb0 fuse 0:0 0666 # dri device card[0-9] 0:0 0660 =dri/ # alsa sound devices and audio stuff pcm.* 0:0 0660 =snd/ control.* 0:0 0660 =snd/ midi.* 0:0 0660 =snd/ seq 0:0 0660 =snd/ timer 0:0 0660 =snd/ adsp 0:0 0660 >sound/ audio 0:0 0660 >sound/ dsp 0:0 0660 >sound/ mixer 0:0 0660 >sound/ sequencer.* 0:0 0660 >sound/ # misc stuff agpgart 0:0 0660 >misc/ psaux 0:0 0660 >misc/ rtc0 0:0 0600 @ln -sf $MDEV rtc # input stuff event[0-9]+ 0:0 0640 =input/ mice 0:0 0640 =input/ mouse[0-9]+ 0:0 0640 =input/ ts[0-9]+ 0:0 0600 =input/ # v4l stuff vbi[0-9]+ 0:0 0660 >v4l/ video[0-9]+ 0:0 0660 >v4l/ # dvb stuff # dvb.* 0:0 0660 */lib/mdev/dvbdev # usb bus devices usb([0-9]) 0:0 0664 =bus/usb/00%1/001 usb([1-9][0-9]) 0:0 0664 =bus/usb/0%1/001 usb([1-9][0-9]{2}) 0:0 0664 =bus/usb/%1/001 # usb devices ([0-9]+)-([0-9]+)(\.[0-9]+)* 0:0 0664 */lib/mdev/usb hiddev[0-9]+ 0:0 0600 =usb/ hidraw[0-9]+ 0:0 0600 # net devices tun[0-9]* 0:0 0600 =net/ tap[0-9]* 0:0 0600 =net/ # zaptel devices zap(.*) 0:0 0660 =zap/%1