Re: socklog-conf patch for Linux 2.6

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <20040405191945.24559.qmail@74fd3b234bf33f.315fe32.mid.smarden.org>
On Sun, Apr 04, 2004 at 06:25:28PM +0200, Florian Westphal wrote:
> attached is a patch that makes socklog-conf check for Linux Kernel 2.6.
> If a 2.6 kernel is found, socklog-conf will set up the klog service to
> run as root (the acct parameter is ignored. It will also print a warning
> message about this).

Thanks for the patch, but I'm currently not sure that this is the best
way to work around this limitation on Linux.  E.g. it also can be
detected at run-time, this is what I do in the Debian package of
socklog:

/etc/socklog/unix/run:
 #!/bin/sh
 USER=nobody
 exec </proc/kmsg
 exec 2>&1
 test "`uname -r |cut -c0-4`" != '2.6.' || USER=root
 exec chpst -u"$USER" socklog ucspi

Regards, Gerrit.
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.