chroot and hostname resolution problem [was : Re: [syslog-ng]centralized loghost]

Guillaume LACHENAL glachenal@on-x.com
Tue, 5 Nov 2002 10:41:52 +0100


can't find ktrace

doing 'strace /etc/init.d/syslog-ng start', I can't find something 
strange,
but this kind of things if out of my knowledge.

I can send the log if someone could help.

Is there someone who is running a chrooted syslog-ng running under a
non root user as a log collector without any (hostname resolution) problem 
?

The jail is correctly configured.
I've checked the necessary libs w/ 'ldd syslog-ng' and build the
cache with 'ldconfig' (chrooted of course)
/etc/nsswitch.conf & /etc/resolv.conf are in the jail too

I'm currently running 1.5.21 w/ libol-0.3.3






"Guillaume LACHENAL" <glachenal@on-x.com>
Sent by: syslog-ng-admin@lists.balabit.hu
10/30/02 11:14
Please respond to syslog-ng

 
        To:     syslog-ng@lists.balabit.hu
        cc: 
        Subject:        Re: [syslog-ng]centralized loghost


/etc/nsswitch.conf is available in the jail
ktrace & truss are command not found on the box, i'll search for it

when not chrooted, syslog-ng correctly resolve hostnames.





"Ed Ravin" <eravin@panix.com>
Sent by: syslog-ng-admin@lists.balabit.hu
10/28/02 17:31
Please respond to syslog-ng

 
        To:     syslog-ng@lists.balabit.hu
        cc: 
        Subject:        Re: [syslog-ng]centralized loghost


Guillaume LACHENAL writes:
> As syslog-ng run chrooted, I've copied /etc/resolv.conf & /etc/hosts
> into the jail.
> It does not fix the issue

Does your system also require /etc/nsswitch.conf in the chroot?  Do
a ktrace/truss on the startup in the chroot and see if it finds all
the files it needs to do DNS lookups.


_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html





_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html