mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
procd: Set /dev/kmsg to 600
Small cleanup. I initially though /dev/kmsg was used for dmsg(and journald on desktops) but this seems not to be the case. dmsg is still accessible as non-root(gives output) which begs the question what does this do? Some googling reveals that permissions are set to 600 for some embedded systems while 644 for others. I can't find any justification for the latter. Might as well err on the side of caution. Signed-off by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
bb00c0a33c
commit
8a83ffbefd
@ -16,10 +16,6 @@
|
|||||||
[ "return" ],
|
[ "return" ],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[ "if",
|
|
||||||
[ "eq", "DEVNAME", "kmsg" ],
|
|
||||||
[ "makedev", "/dev/%DEVNAME%", "0644" ],
|
|
||||||
],
|
|
||||||
[ "if",
|
[ "if",
|
||||||
[ "regex", "DEVNAME", "^snd" ],
|
[ "regex", "DEVNAME", "^snd" ],
|
||||||
[ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
|
[ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],
|
||||||
|
Loading…
Reference in New Issue
Block a user