From: Daniel Hokka Zakrisson Date: Wed, 8 Aug 2007 21:32:25 +0000 (+0000) Subject: Set the namespaces we've unshared. X-Git-Tag: release-0.30.214~24 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=070c3799b792033eb4ef79ab0de03ebde6feb200;p=util-vserver.git Set the namespaces we've unshared. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2581 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/lib/syscall_ctxcreate-v21.hc b/lib/syscall_ctxcreate-v21.hc index 91e145b..600c9ef 100644 --- a/lib/syscall_ctxcreate-v21.hc +++ b/lib/syscall_ctxcreate-v21.hc @@ -39,6 +39,7 @@ vc_ctx_create_v21(xid_t xid, struct vc_ctx_flags *flags) if (res != VC_NOCTX) { if (utilvserver_checkCompatConfig() & VC_VCI_SPACES) { sys_unshare(CLONE_NEWUTS | CLONE_NEWIPC); + vc_set_namespace(VC_SAMECTX, CLONE_NEWUTS | CLONE_NEWIPC); } }