Denys Vlasenko | 27094ca | 2009-11-07 03:28:48 +0100 | [diff] [blame] | 1 | # |
| 2 | # This is a sample mdev.conf |
| 3 | # |
| 4 | |
| 5 | # Provide user, group, and mode information for devices. If a regex matches |
| 6 | # the device name provided by sysfs, use the appropriate user:group and mode |
| 7 | # instead of the default 0:0 660. |
| 8 | # |
| 9 | # Syntax: |
Denys Vlasenko | ea57f51 | 2012-05-18 11:39:57 +0200 | [diff] [blame] | 10 | # [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
| 11 | # [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
| 12 | # [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] |
| 13 | # |
| 14 | # [-]: do not stop on this match, continue reading mdev.conf |
| 15 | # =: move, >: move and create a symlink |
| 16 | # !: do not create device node |
| 17 | # @|$|*: run@cmd if $ACTION=add, $cmd if $ACTION=remove, *cmd in all cases |
Denys Vlasenko | 27094ca | 2009-11-07 03:28:48 +0100 | [diff] [blame] | 18 | |
| 19 | null 0:0 666 |
| 20 | zero 0:0 666 |
| 21 | urandom 0:0 444 |
| 22 | |
| 23 | kmem 0:9 000 |
| 24 | mem 0:9 640 |
| 25 | port 0:9 640 |
| 26 | |
| 27 | console 0:5 600 |
| 28 | ptmx 0:5 660 |
| 29 | tty[0-9]* 0:5 660 |
| 30 | |
| 31 | ttyS[0-9]* 0:20 640 |
| 32 | |
| 33 | fd[0-9]* 0:11 660 |
| 34 | |
| 35 | sd[a-z]* 0:6 660 |
| 36 | hd[a-z]* 0:6 660 |
Mike Frysinger | 2098c35 | 2016-12-09 16:12:15 -0500 | [diff] [blame] | 37 | |
| 38 | hw_random 0:0 600 =hwrng |