| |
| | chroot login HOWTO |
 | | The second shell script, initjail.sh, unpacks that tarball into the jail, and adds crucial /dev entries, a /proc filesystem, /etc files, core programs like sh, and non-toolchain shared libraries, and appends a given file to the jail's /etc/passwd file. |
 | | Specific users can be configured such that the moment they log in, a wrapper program (see chrootshell.c) jails the user in his home directory using the chroot system call, looks up his record in the jail's private /etc/passwd file, and uses it to set his current directory and transfer control to his preferred shell. |
 | | Once a jail has been set up for the user you plan to run the remote tests as, and it has passed all the above tests, you should be able to blow away the old jail's contents, and recreate the jail remotely filled with the system shared libraries you plan to test. |
| www.kegel.com /crosstool/current/doc/chroot-login-howto.html (1905 words) |
|