From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stephane Bortzmeyer Newsgroups: gmane.os.tru64.managers Subject: chroot and syslog: broken? Date: Thu, 17 Jul 2003 15:19:55 +0200 Organization: NIC France Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20030717131955.GA25932@nic.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058448000 2840 80.91.224.249 (17 Jul 2003 13:20:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2003 13:20:00 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 17 15:19:58 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19d8fH-0000fL-00 for ; Thu, 17 Jul 2003 15:19:19 +0200 Original-Received: (qmail 25965 invoked by uid 5); 17 Jul 2003 13:20:13 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25956 invoked by uid 49493); 17 Jul 2003 13:20:13 -0000 Original-Received: from bortzmeyer@nic.fr by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.5/5.0):. Processed in 0.544317 secs); 17 Jul 2003 13:20:13 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 17 Jul 2003 13:20:12 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI6001317PNP4@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 17 Jul 2003 09:20:12 -0400 (EDT) Original-Received: from maya40.nic.fr (maya40.nic.fr [192.134.4.151]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI600L8F7P8MS@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 17 Jul 2003 09:19:57 -0400 (EDT) Original-Received: from vespucci.nic.fr (postfix@vespucci.nic.fr [192.134.4.68]) by maya40.nic.fr (8.12.4/8.12.4) with ESMTP id h6HDJtNl894384 for ; Thu, 17 Jul 2003 15:19:55 +0200 (CEST) Original-Received: by vespucci.nic.fr (Postfix, from userid 1055) id 55D00FCCE; Thu, 17 Jul 2003 15:19:55 +0200 (CEST) X-URL: http://www.nic.fr/ Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Operating-System: Debian GNU/Linux 3.0 X-Kernel: Linux 2.4.18-686 i686 Xref: main.gmane.org gmane.os.tru64.managers:4870 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4870 Hello, I'm trying to run the nameserver daemon nsd 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