1 |
On Monday 01 Aug 2016 17:32:58 Mick wrote: |
2 |
> On Monday 01 Aug 2016 12:19:41 waltdnes@××××××××.org wrote: |
3 |
|
4 |
> > > What chroot() actually does is fairly simple, it modifies pathname |
5 |
> > > lookups for a process and its children so that any reference to a path |
6 |
> > > starting '/' will effectively have the new root, which is passed as |
7 |
> > > the single argument, prepended onto the path. The current working |
8 |
> > > directory is left unchanged and relative paths can still refer to |
9 |
> > > files outside of the new root. |
10 |
> |
11 |
> Thanks Walter, it's present along with the whole of the 32bit OS fs: |
12 |
> |
13 |
> gentoo-32bit # ls -la /mnt/iso/gentoo-32bit/bin/bash |
14 |
> -rwxr-xr-x 1 root root 677244 Jan 16 2016 /mnt/iso/gentoo-32bit/bin/bash |
15 |
> |
16 |
> gentoo-32bit # file /mnt/iso/gentoo-32bit/bin/bash |
17 |
> /mnt/iso/gentoo-32bit/bin/bash: ELF 32-bit LSB executable, Intel 80386, |
18 |
> version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for |
19 |
> GNU/Linux 2.6.32, stripped |
20 |
> |
21 |
> |
22 |
> Am I missing something in the amd64 kernel to be able to execute 32bit code? |
23 |
|
24 |
No, I was missing the *whole* of the 32bit fs /lib directory. O_O |
25 |
|
26 |
Apologies for the noise. |
27 |
-- |
28 |
Regards, |
29 |
Mick |