OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: chroot-problem on Linux (glibc-2.1.2)
From: Liviu Daia (Liviu.Daiaimar.ro)
Date: Mon Feb 07 2000 - 06:41:31 CST


On 7 February 2000, Carsten Hoeger <choegersuse.de> wrote:
> On Mon, Feb 07, Ralf Hildebrandt wrote:
>
> > Unfortunately, when running chrooted, postfix failed to resolve the
> > hostname of the mailhub it was supposed to send all mail to.
> >
> > examples/chroot-setup/LINUX2 (which can't be run twice, BTW :( )
> > copies the following files into the queue-directory:
> >
> > /etc/localtime
> > /etc/services
> > /etc/resolv.conf
> >
> > /usr/lib/zoneinfo
> > /lib/nss_dns.so.1
> >
> > Doesn't seem to be sufficient.
> >
> > Question: How can I find out WHICH files are missing? Adding -v to
> > the entries in master.cf doesn't yield much information. I thought
> > of strace'ing the processes..
>
> After some experiments, I found out, that this set of libraries do the
> job:
>
> /lib/libnss_dns*
> /lib/libnss_db*
> /lib/libnss_files*
> /lib/libresolv*
> /lib/libdb*

    You also need

        /etc/ld.so.conf
        /etc/ld.so.cache
        /lib/libc.*
        /lib/ld-*

> And don't forget nsswitch.conf, it's also needed (IMHO).

    True on systems using libc6.

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu.Daiaimar.ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc