X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate-v21.hc;h=7cfec9fac88374fd3920279d22e8ddab86defea2;hb=c4044f42e233926852ef9d41a777225ed99df90a;hp=3fb2f568f80b7fb058c78e1149da48f6ff5d27c5;hpb=05f8e8a30aa7c113890e3d28341a010c0f994dac;p=util-vserver.git diff --git a/lib/syscall_ctxcreate-v21.hc b/lib/syscall_ctxcreate-v21.hc index 3fb2f56..7cfec9f 100644 --- a/lib/syscall_ctxcreate-v21.hc +++ b/lib/syscall_ctxcreate-v21.hc @@ -19,7 +19,6 @@ #ifdef HAVE_CONFIG_H # include #endif -#include static inline ALWAYSINLINE xid_t vc_ctx_create_v21(xid_t xid, struct vc_ctx_flags *flags) @@ -36,13 +35,5 @@ vc_ctx_create_v21(xid_t xid, struct vc_ctx_flags *flags) res = vserver(VCMD_ctx_create_v1, CTX_USER2KERNEL(xid), &data); res = CTX_KERNEL2USER(res); - if (res != VC_NOCTX) { - if (utilvserver_checkCompatConfig() & VC_VCI_SPACES) { - uint32_t spaces = vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS); - sys_unshare(spaces); - vc_set_namespace(VC_SAMECTX, spaces); - } - } - return res; }