diff options
author | neheb <rosenp@gmail.com> | 2016-06-24 22:39:25 -0700 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-06-30 22:48:39 +0200 |
commit | c6cef6dde743c9d1b52426f4aa2e7068fde43e7e (patch) | |
tree | bcaf5962e40ab4820c110198ccb8a5c5bd4aa62b /package/system/procd/files | |
parent | 2dc9beddc089bdaa9a2a39aeeb88c7ae14fda56c (diff) | |
download | upstream-c6cef6dde743c9d1b52426f4aa2e7068fde43e7e.tar.gz upstream-c6cef6dde743c9d1b52426f4aa2e7068fde43e7e.tar.bz2 upstream-c6cef6dde743c9d1b52426f4aa2e7068fde43e7e.zip |
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>
Diffstat (limited to 'package/system/procd/files')
-rw-r--r-- | package/system/procd/files/hotplug.json | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json index de8ba105c5..5f768f4eeb 100644 --- a/package/system/procd/files/hotplug.json +++ b/package/system/procd/files/hotplug.json @@ -10,7 +10,7 @@ [ "if", [ "or", [ "eq", "DEVNAME", - [ "null", "full", "ptmx", "zero", "tty" ], + [ "null", "full", "ptmx", "zero", "tty", "net", "random", "urandom" ], ], [ "regex", "DEVNAME", [ "^gpio", "^hvc" ], @@ -22,26 +22,16 @@ ] ], [ "if", - [ "or", - [ "eq", "DEVNAME", "mapper/control" ], - [ "regex", "DEVPATH", "^ppp" ], - ], - [ - [ "makedev", "/dev/%DEVNAME%", "0600" ], - [ "return" ], - ], + [ "eq", "DEVNAME", "kmsg" ], + [ "makedev", "/dev/%DEVNAME%", "0644" ], ], [ "if", [ "regex", "DEVNAME", "^snd" ], [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ], ], [ "if", - [ "regex", "DEVNAME", "^ttyS" ], - [ "makedev", "/dev/%DEVNAME%", "0664" ], - ], - [ "if", [ "has", "DEVNAME" ], - [ "makedev", "/dev/%DEVNAME%", "0644" ], + [ "makedev", "/dev/%DEVNAME%", "0600" ], ], ], ], |