Summary - syslog / chroot

From: beig%frulm63.bitnet@eecs.nwu.edu
Date: Wed Feb 27 1991 - 05:30:01 CST


 
Thanks to this list which solved my problem; and thanks to:
        edguer@alpha.ces.cwru.edu
        andys@ulysses.att.com
        condor!guyton
        shipley@remarque.berkeley.edu
        Henrik.Martin@eua.ericsson.se
        david@srv.PacBell.COM
        slevy@poincare.geom.umn.edu
        tadguy@abcfd01.larc.nasa.gov
who took time to answer.
 
>> I tried to compile the ftpd deamon I got by anonymous ftp from
>> uunet.uu.net. syslog messages go well to the specifies host/files,
>> according to syslog.conf, as soon as chroot is not
>> called. But after nothing more is sent to syslog.
>>
>> Is there any way to fix this?
 
ftpd does things in this order:
        openlog(..)
        chroot(...)
        syslog(...)
So we could think that, as openlog is done before chroot, syslog would work.
It doesn't. Though in theory it should.
 
No hard or soft links solved the problem. The way to fix this is to
have an own syslog(3) which does syslog by using UNIX domain IPC.
You can get syslog.c from uunet.uu.net:/bsd-sources/lib/libc/syslog.c
and then do the changes.
 
  --Jacques Beigbeder
  ( beig@frulm63.bitnet / beig@ens.ens.fr / Jacques.Beigbeder@ens.fr )



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:11 CDT