syslog / chroot

2007-12-25 7:19:00

 

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 )

Comments

Got something to say?

You must be logged in to post a comment.