gentoo-hardened April 2008 archive
Main Archive Page > Month Archives  > gentoo-hardened archives
gentoo-hardened: Re: [gentoo-hardened] Problem with chroot

Re: [gentoo-hardened] Problem with chroot

From: Ned Ludd <solar_at_nospam>
Date: Thu Apr 10 2008 - 16:39:48 GMT
To: gentoo-hardened@lists.gentoo.org

On Thu, 2008-04-10 at 18:27 +0200, pageexec@freemail.hu wrote:
> On 10 Apr 2008 at 12:00, vitamona wrote:
>
> > i was created a jail with app-misc/jail in this way:
> >
> > # mkdir /chroot
> > # mkjailenv /chroot/apache
> > # addaliasw /chroot/apache/
> >
> > but when i try to enter into this chroot something doens't work.
> >
> > # chroot /chroot/apache/ /bin/sh
> > chroot: cannot run command `/bin/sh': No such file or directory
>
> do you have all the necessary dependencies (ld.so/libc/etc) as well
> in the chroot? in other words, does the same chroot work without a
> grsec kernel?

An easy way to tell if the chroot is working for you is to. cp /bin/bb ${CHROOT}/bin/bb
chroot ${CHROOT} /bin/bb --login
#

But as pageexec@ notes. Chances are you are missing one of the following libdl.so libc.so libncurses.so or ld-*linux.so -- Ned Ludd <solar@gentoo.org> Gentoo Linux -- gentoo-hardened@lists.gentoo.org mailing list