aboutsummaryrefslogtreecommitdiff
path: root/examples/mdev.conf
blob: cdbb4fcfeafe461b75a5b180523429a4145d2e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# This is a sample mdev.conf
#

# 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:
# %s %d:%d %s
# devicename_regex user:group mode

null		0:0 666
zero		0:0 666
urandom		0:0 444

kmem		0:9 000
mem		0:9 640
port		0:9 640

console		0:5 600
ptmx		0:5 660
tty[0-9]*	0:5 660

ttyS[0-9]*	0:20 640

fd[0-9]*	0:11 660

sd[a-z]*	0:6 660
hd[a-z]*	0:6 660