]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-attach: Detect which namespaces to attach to dynamically
authorChristian Seiler <christian@iwakd.de>
Tue, 21 Aug 2012 22:03:13 +0000 (00:03 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 12 Nov 2012 18:13:52 +0000 (13:13 -0500)
commitfc763ab77d48ecd191a402a11f778c46e114e79b
treeb1e70d76533a47049d9868a3d98f306c9a585567
parentc8f7c5630e8312cab7e17539381f05dffe9193fa
lxc-attach: Detect which namespaces to attach to dynamically

Use the command interface to contact lxc-start to receive the set of
flags passed to clone() when starting the container. This allows lxc-attach
to determine which namespaces were used for the container and select only
those to attach to.

Signed-off-by: Christian Seiler <christian@iwakd.de>
Cc: Daniel Lezcano <daniel.lezcano@free.fr>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
src/lxc/attach.c
src/lxc/attach.h
src/lxc/lxc_attach.c