From: Daniel Hokka Zakrisson Date: Fri, 8 Dec 2006 15:35:24 +0000 (+0000) Subject: Only enter the namespaces for static and dynamic xids (i.e. not the spectator). X-Git-Tag: release-0.30.212~4 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbe41ab46077aed94fd7483cf6bc1e2857e12e5;p=util-vserver.git Only enter the namespaces for static and dynamic xids (i.e. not the spectator). git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2419 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/lib/syscall_ctxmigrate-v21.hc b/lib/syscall_ctxmigrate-v21.hc index ca6666f..355a7a1 100644 --- a/lib/syscall_ctxmigrate-v21.hc +++ b/lib/syscall_ctxmigrate-v21.hc @@ -24,11 +24,12 @@ static inline ALWAYSINLINE int vc_ctx_migrate_spaces(xid_t xid) { - int ret; - - ret = vc_enter_namespace(xid, vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS)); - if (ret) - return ret; + int ret = vc_getXIDType(xid); + if (ret == vcTYPE_STATIC || ret == vcTYPE_DYNAMIC) { + ret = vc_enter_namespace(xid, vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS)); + if (ret) + return ret; + } return vserver(VCMD_ctx_migrate_v0, CTX_USER2KERNEL(xid), NULL); }