Error running socklog Klog service

[email protected]
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
Hello Everyone,

I cannot get socklogs klog service to work (socklog unix runs fine):

# cd /etc/minit/service/
# klog/run
socklog: fatal: read(): permission denied

# uname -sr
Linux 2.6.4-gentoo-r1

# cat klog/run 
#!/bin/sh
exec </proc/kmsg
exec 2>&1
exec chpst -unobody socklog ucspi

The last lines from strace look like this:
open("/dev/urandom", O_RDONLY)          = 3
read(3, ":\307\32\342,\310_VhnG\361\0251?\267\303\331\305\215y7"..., 32)
= 32
close(3)                                = 0
read(0, 0x804c9c0, 8192)                = -1 EPERM (Operation not
permitted)
write(2, "socklog: fatal: read(): permissi"..., 42) = 42
exit_group(111)                         = ?

A full strace is available here:
http://w3.foo.fh-furtwangen.de/~westphal/socklog-klog.gz

Does anyone know what is going on here and why?
It works when I use "chpst -Unobody", but i'd like to avoid running
socklog with uid 0 if possible.

Thanks,
 Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.