chroot and syslog: broken?

From: Stephane Bortzmeyer (bortzmeyer@nic.fr)
Date: Thu Jul 17 2003 - 09:19:55 EDT


Hello,

I'm trying to run the nameserver daemon nsd
<URL:http://www.nlnetlabs.nl/nsd/index.html> on Tru64. It works fine.

Now, I want to run it in a chroot (nsd has a "-t chrootdir"
option). It works fine but nothing is logged by syslog.

syslog(3) says:

[Tru64 UNIX] If a program is using the chroot system call, the syslog rou-
 tine will not work correctly unless the program calls the openlog or
 openlog_r routine prior to making the call to chroot .

But nsd does call openlog() long before calling chroot().

Funny, it seems nothing changed on Tru64 since 1996:

http://www.ornl.gov/cts/archives/mailing-lists/tru64-unix-managers/1996/01/msg00003.html



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:27 EDT