]> git.ipfire.org Git - thirdparty/lxc.git/commit
simpler shared rootfs handling
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 1 Mar 2014 05:41:12 +0000 (23:41 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 3 Mar 2014 21:22:42 +0000 (16:22 -0500)
commit20c1b5377c6ddc41b0d9f7dcc860cbbd2a06d0e3
treeb287f20068462a28f213e9885c10296692e53317
parentf25ffc275c88da3b2eeb2ee14ae28d3acdfa478e
simpler shared rootfs handling

Only do the funky chroot_into_slave if / is in fact the rootfs.
Rootfs is a special blacklisted case for pivot_root.

If / is not rootfs but is shared, just mount / rslave.  We're
already in our own namespace.

This appears to solve the extra /proc/$$/mount entries in
containers and the host directories in lxc-attach which have
been plagueing at least fedora and arch.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c
src/lxc/utils.c
src/lxc/utils.h