]> git.ipfire.org Git - thirdparty/lxc.git/commit
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:29:47 +0000 (11:29 -0400)
commit925036ae1b68dc36ae9be786e2b4eebe33462955
tree0e3bc17371831488a22dff6673882b4ece35a8b0
parentc48bc12251bef1652e6c117cecc7d4b68a483f92
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