linuxOS_AP05/buildroot/board/rockchip/rk3308/fs-overlay/etc/mdev.conf
2025-06-02 13:59:07 +08:00

48 lines
1.3 KiB
Plaintext
Executable File

# rk rules
SUBSYSTEM=udc;ACTION=change;DRIVER=configfs-gadget;.* root:root 0660 */usr/bin/usb_config $DEVPATH
mmcblk[0]p[0-9] root:root 660 */usr/bin/sdcard_mount
([hs]d[a-z])([0-9]+) root:root 660 */usr/bin/udisk_mount
# null may already exist; therefore ownership has to be changed with command
null root:root 666 @chmod 666 $MDEV
zero root:root 666
full root:root 666
random root:root 444
urandom root:root 444
hwrandom root:root 444
grsec root:root 660
kmem root:root 640
mem root:root 640
port root:root 640
# console may already exist; therefore ownership has to be changed with command
console root:tty 600 @chmod 600 $MDEV
ptmx root:tty 666
pty.* root:tty 660
# Typical devices
tty root:tty 666
tty[0-9]* root:tty 660
vcsa*[0-9]* root:tty 660
ttyS[0-9]* root:root 660
ttyUSB[0-9]* root:root 660
# alsa sound devices
pcm.* root:audio 660 =snd/
control.* root:audio 660 =snd/
midi.* root:audio 660 =snd/
seq root:audio 660 =snd/
timer root:audio 660 =snd/
# input stuff
event[0-9]+ root:root 640 =input/
mice root:root 640 =input/
mouse[0-9] root:root 640 =input/
ts[0-9] root:root 600 =input/
# load modules
$MODALIAS=.* root:root 660 @modprobe "$MODALIAS"
# Catch-all other devices, Right now useful only for debuging.
# .* root:root 660 */data/catch-all