[syslog-ng]logging from a chrooted process

Balazs Scheidler bazsi@balabit.hu
Thu, 7 Nov 2002 15:59:01 +0100


On Thu, Nov 07, 2002 at 02:30:19PM +0100, Guillaume LACHENAL wrote:
> I'm currently trying to chroot some services on a Linux box (ntpd)
> 
> strace'ing it to find the missing libs, I've seen that the process can't 
> log as /dev/log is outside the jail
> 
> > 9135  connect(4, {sin_family=AF_UNIX, path="      /dev/log"}, 16) = -1 
> ENOENT (No such file or directory)
> 
> How to make a /dev/log into the jail ? or send the log via network to a 
> log collector ?

what about a unix-stream("/var/chroot/ntp/dev/log") source to syslog-ng?

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1