]> git.ipfire.org Git - thirdparty/lxc.git/commit
attach: setns instead of unshare in lxc-attach 1102/head
authoroc <chenhaiq@yunify.com>
Wed, 27 Jul 2016 14:43:58 +0000 (22:43 +0800)
committeroc <chenhaiq@yunify.com>
Thu, 28 Jul 2016 01:13:30 +0000 (09:13 +0800)
commitdac862c0152cfc06c44a99fce6e356e4e7f467ae
tree079219da8a467047441da3cc819fac6c11aa9397
parent813d7f1453e6e28adc0fdfac62d9c4597a87e430
attach: setns instead of unshare in lxc-attach

lxc-checkpoint will fail because process createdy by lxc-attach has
incorrect cgroup ns. It needs to use "setns" instead of "unshare"
to set cgroup ns.

Signed-off-by: Chen Haiquan <oc@yunify.com>
src/lxc/attach.c