procd: Set /dev/kmsg to 600
authorneheb <rosenp@gmail.com>
Sat, 2 Jul 2016 01:32:27 +0000 (18:32 -0700)
committerJohn Crispin <john@phrozen.org>
Sat, 2 Jul 2016 08:16:18 +0000 (10:16 +0200)
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>

package/system/procd/files/hotplug.json

index 85fbb144cc3342c98485320e57572adbb893337f..e5f8d967e8c16c8dc85a437a5259c0ba840d766c 100644 (file)
                                                        [ "return" ],
                                                ]
                                        ],
-                                       [ "if",
-                                               [ "eq", "DEVNAME", "kmsg" ],
-                                               [ "makedev", "/dev/%DEVNAME%", "0644" ],
-                                       ],
                                        [ "if",
                                                [ "regex", "DEVNAME", "^snd" ],
                                                [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ],