On Tue, Sep 06, 2011 at 01:02:14PM -0400, Alphonse Hansel Anthony wrote:
> Hi,
> What is the difference between chroot & pivot_root.
> They don't seem obvious based on the man pages apart from the below
> mentioned
> caveats.
>
> 1) Inherited Open file descriptors, have to be explicitly closed.
> 2) Does not change CWD of the process, which can be overcome by doing a
> chdir before & after chroot call.
>
> Any information on this would be useful.
I assume you are asking wrt the libvirt LXC driver, which uses pivot_root