chroot and syslog: broken?

From: Stephane Bortzmeyer <bortzmeyer_at_nic.fr>
Date: Thu, 17 Jul 2003 15:19:55 +0200

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
Received on Thu Jul 17 2003 - 13:20:43 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT