X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate-v21.hc;h=7cfec9fac88374fd3920279d22e8ddab86defea2;hb=1bd485daf1544e9b7b9bf020783f6aa0b0085c0b;hp=91e145b6526c2c539bdc72055acee3da8229d13e;hpb=a6be71d3e49f0f633705ba5e4e08cc1cac811344;p=util-vserver.git diff --git a/lib/syscall_ctxcreate-v21.hc b/lib/syscall_ctxcreate-v21.hc index 91e145b..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,14 +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) { - sys_unshare(CLONE_NEWUTS | CLONE_NEWIPC); - } - } - return res; }