1 |
On Thu, 2008-04-10 at 18:27 +0200, pageexec@××××××××.hu wrote: |
2 |
> On 10 Apr 2008 at 12:00, vitamona wrote: |
3 |
> |
4 |
> > i was created a jail with app-misc/jail in this way: |
5 |
> > |
6 |
> > # mkdir /chroot |
7 |
> > # mkjailenv /chroot/apache |
8 |
> > # addaliasw /chroot/apache/ |
9 |
> > |
10 |
> > but when i try to enter into this chroot something doens't work. |
11 |
> > |
12 |
> > # chroot /chroot/apache/ /bin/sh |
13 |
> > chroot: cannot run command `/bin/sh': No such file or directory |
14 |
> |
15 |
> do you have all the necessary dependencies (ld.so/libc/etc) as well |
16 |
> in the chroot? in other words, does the same chroot work without a |
17 |
> grsec kernel? |
18 |
|
19 |
An easy way to tell if the chroot is working for you is to. |
20 |
cp /bin/bb ${CHROOT}/bin/bb |
21 |
chroot ${CHROOT} /bin/bb --login |
22 |
# |
23 |
|
24 |
But as pageexec@ notes. Chances are you are missing one of the following |
25 |
libdl.so libc.so libncurses.so or ld-*linux.so |
26 |
|
27 |
|
28 |
-- |
29 |
Ned Ludd <solar@g.o> |
30 |
Gentoo Linux |
31 |
|
32 |
-- |
33 |
gentoo-hardened@l.g.o mailing list |