[lxc-devel] Reg:DIfference between chroot & pivot_root

Alphonse Hansel Anthony alphonse.anthony at gmail.com
Tue Sep 6 17:02:45 UTC 2011


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.

Thanks,
Alphonse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110906/5a3a908f/attachment.html>


More information about the lxc-devel mailing list