/* * Digest of manual page of chroot system call - No.61 * * chroot - change root directory * * Synopsis * #include * * int chroot(const char *path); * * Description * chroot changes the root directory to that specified in * path. This dirctory will be used for path names beginning * with /. The root directory is inherited by all children * of the current process. * * Only the super-user may change the root directory. * * Note that this call does not change the current working * directory, so that '.' can be outside the tree rooted at * '/'. In particular, the super-user can escape from a * 'chroot jail' by doing 'mkdir foo; chroot foo; cd ..'. */