]> 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 16:04:29 +0000 (11:04 -0500)
commitb7f954bbddc50844e5ea3f7e72170173f5cecfb7
treeb287f20068462a28f213e9885c10296692e53317
parent8d2efe40a32700eaec6a8f3057b3b9bb16721b3d
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