X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate-v21.hc;h=7cfec9fac88374fd3920279d22e8ddab86defea2;hb=HEAD;hp=20e74623be7fe6068a61cc88e5528cbec06b121e;hpb=63083b4ea0b6bba6c354c6df0ee745b21307b7da;p=util-vserver.git diff --git a/lib/syscall_ctxcreate-v21.hc b/lib/syscall_ctxcreate-v21.hc index 20e7462..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) @@ -33,16 +32,8 @@ vc_ctx_create_v21(xid_t xid, struct vc_ctx_flags *flags) if (flags) data.flagword = flags->flagword & flags->mask; - res = vserver(VCMD_ctx_create, CTX_USER2KERNEL(xid), &data); + 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; }