Gentoo Archives: gentoo-hardened

From: pageexec@××××××××.hu
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Problem with chroot
Date: Fri, 11 Apr 2008 08:59:39
Message-Id: 47FF4354.1899.2CDB4A04@pageexec.freemail.hu
In Reply to: Re: [gentoo-hardened] Problem with chroot by vitamona
1 On 11 Apr 2008 at 9:52, vitamona wrote:
2 > The /bin/bb doesn't work:
3 >
4 > # cp /bin/bb /chroot/apache/bin/bb
5 > # chroot /chroot/apache/ /bin/bb --login
6 > chroot: cannot run command `/bin/bb': No such file or directory
7
8 what's 'file /bin/bb' say? is it statically linked?
9
10 > and this is lib installed (i had used jail tool for creating the jail):
11
12 you don't have the ld-linux.so.2 symlink so no wonder that dynamically
13 linked binaries fail to start, but i don't know about bb yet, it should
14 be statically linked and run even in your current setup. btw, is /chroot
15 a special mount with noexec perhaps (although that should have produced
16 a different error already)?
17
18 --
19 gentoo-hardened@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] Problem with chroot vitamona <vitamona@×××××.com>