On Mon, Sep 13, 2010 at 12:04 PM, r0g <aioe....@technicalbloke.com> wrote:

> i.e. So do I always have to change directory after changing into a chroot?
>

Yes, as documented in the man page for the chroot system call:

This call changes an ingredient in the pathname resolution process and does
> nothing else.
>
> This call does not change the current working directory, so that after the
> call '.' can be outside the tree rooted at '/'. In particular, the superuser
> can escape from a 'chroot jail' by doing 'mkdir foo; chroot foo; cd ..'.
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to