X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lxcsu-internal;h=bb7c2a4ffdffa9d15908d4383c511dc672ea38fe;hb=c295b2dd01f8b2a2c754da59e6ff3bcc2a6c14c9;hp=a670d6292d6e2f66b37af5001b06b220a3d3af16;hpb=e2b59d88ca88c2b0a40a7e462426ef8a36a5be88;p=lxc-userspace.git diff --git a/lxcsu-internal b/lxcsu-internal index a670d62..bb7c2a4 100755 --- a/lxcsu-internal +++ b/lxcsu-internal @@ -142,6 +142,9 @@ def main (): setns.chcontext('/proc/%s/ns/uts'%pid) setns.chcontext('/proc/%s/ns/ipc'%pid) + + if (not args.pidns): + setns.chcontext('/proc/%s/ns/pid'%pid) if (not args.netns): setns.chcontext('/proc/%s/ns/net'%pid) @@ -149,8 +152,7 @@ def main (): if (not args.mntns): setns.chcontext('/proc/%s/ns/mnt'%pid) - if (not args.pidns): - setns.chcontext('/proc/%s/ns/pid'%pid) + proc_mounted = False if (not os.access('/proc/self',0)):