mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-14 19:04:39 +00:00
procd: adjust /dev entries to desktop distro defaults
This changes the default permissions for /dev entries to be more similar to a desktop distro. Taken from the defaults of Arch Linux and Ubuntu. Also changed some that were nonsensical. For example, all 660 permissions on desktop distros were of the form root:x where x is something other than root. As such, 660 is useless for LEDE where the specific group is missing. audio seems to be the only group that isn't. Signed-off by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
2dc9beddc0
commit
c6cef6dde7
@ -10,7 +10,7 @@
|
|||||||
[ "if",
|
[ "if",
|
||||||
[ "or",
|
[ "or",
|
||||||
[ "eq", "DEVNAME",
|
[ "eq", "DEVNAME",
|
||||||
[ "null", "full", "ptmx", "zero", "tty" ],
|
[ "null", "full", "ptmx", "zero", "tty", "net", "random", "urandom" ],
|
||||||
],
|
],
|
||||||
[ "regex", "DEVNAME",
|
[ "regex", "DEVNAME",
|
||||||
[ "^gpio", "^hvc" ],
|
[ "^gpio", "^hvc" ],
|
||||||
@ -22,26 +22,16 @@
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
[ "if",
|
[ "if",
|
||||||
[ "or",
|
[ "eq", "DEVNAME", "kmsg" ],
|
||||||
[ "eq", "DEVNAME", "mapper/control" ],
|
[ "makedev", "/dev/%DEVNAME%", "0644" ],
|
||||||
[ "regex", "DEVPATH", "^ppp" ],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[ "makedev", "/dev/%DEVNAME%", "0600" ],
|
|
||||||
[ "return" ],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
[ "if",
|
[ "if",
|
||||||
[ "regex", "DEVNAME", "^snd" ],
|
[ "regex", "DEVNAME", "^snd" ],
|
||||||
[ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
|
[ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
|
||||||
],
|
],
|
||||||
[ "if",
|
|
||||||
[ "regex", "DEVNAME", "^ttyS" ],
|
|
||||||
[ "makedev", "/dev/%DEVNAME%", "0664" ],
|
|
||||||
],
|
|
||||||
[ "if",
|
[ "if",
|
||||||
[ "has", "DEVNAME" ],
|
[ "has", "DEVNAME" ],
|
||||||
[ "makedev", "/dev/%DEVNAME%", "0644" ],
|
[ "makedev", "/dev/%DEVNAME%", "0600" ],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user