]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
c/r: populate clone flags on restore
authorTycho Andersen <tycho.andersen@canonical.com>
Thu, 9 Apr 2015 21:59:19 +0000 (21:59 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 10 Apr 2015 15:02:16 +0000 (11:02 -0400)
commitf813849cee365da37341f3558689a908e7739b1b
tree4380851ca8e14f26b1abeb098740d71fbb113010
parent3335c60896056f3c5d260e0b96dc918db688b77f
c/r: populate clone flags on restore

Since attach asks the restore process what the clone flags were, if we forgot
to set them then the attach command ran in the hosts namespaces instead of the
containers, which is a Very Bad Thing :). Instead, we remember to set the clone
flags in the restore process' handler, so that we report them correctly to any
attach processes who ask.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c
src/lxc/start.c
src/lxc/start.h