Gentoo Archives: gentoo-hardened

From: vitamona <vitamona@×××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Problem with chroot
Date: Fri, 11 Apr 2008 07:52:48
Message-Id: fb9836e60804110052l3f064c7fn195a9fc8fa254f13@mail.gmail.com
In Reply to: Re: [gentoo-hardened] Problem with chroot by Ned Ludd
1 Hi, many thanks at all for the reply.
2
3 The gradm is not enabled now.
4 The /bin/bb doesn't work:
5
6 # cp /bin/bb /chroot/apache/bin/bb
7 # chroot /chroot/apache/ /bin/bb --login
8 chroot: cannot run command `/bin/bb': No such file or directory
9
10 and this is lib installed (i had used jail tool for creating the jail):
11
12 # ls -la
13 total 2242
14 drwxr-xr-x 3 root root 576 Apr 10 09:23 .
15 drwxr-xr-x 10 root root 240 Apr 10 09:11 ..
16 -rwxr-xr-x 1 root root 1249516 Apr 10 09:11 libc.so.6
17 -rwxr-xr-x 1 root root 21728 Apr 10 09:06 libcrypt.so.1
18 -rwxr-xr-x 1 root root 9492 Apr 10 09:11 libdl.so.2
19 -rw-r--r-- 1 root root 34032 Apr 10 09:23 libgcc_s.so.1
20 -rwxr-xr-x 1 root root 149176 Apr 10 09:06 libm.so.6
21 -rwxr-xr-x 1 root root 309956 Apr 10 09:07 libncurses.so.5
22 -rwxr-xr-x 1 root root 79072 Apr 10 08:54 libnsl.so.1
23 -rwxr-xr-x 1 root root 30144 Apr 10 08:54 libnss_compat.so.2
24 -rwxr-xr-x 1 root root 38112 Apr 10 08:54 libnss_files.so.2
25 -rwxr-xr-x 1 root root 34040 Apr 10 08:54 libnss_nis.so.2
26 -rwxr-xr-x 1 root root 46256 Apr 10 09:11 libpam.so.0
27 -rwxr-xr-x 1 root root 124608 Apr 10 09:06 libpthread.so.0
28 -rwxr-xr-x 1 root root 30244 Apr 10 09:06 librt.so.1
29 -rwxr-xr-x 1 root root 17644 Apr 10 09:06 libuuid.so.1
30 -rwxr-xr-x 1 root root 79028 Apr 10 09:06 libz.so.1
31 drwxr-xr-x 4 root root 96 Apr 10 09:07 rcscripts
32
33 Bye
34 --
35 gentoo-hardened@l.g.o mailing list

Replies

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