X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_setnamespace-v13.hc;h=915d67ddc57e913c62534f6c8b62bfd37d86ef7e;hb=fbc451923c71119a8dc7c6db5e262770bbb57d1f;hp=ce7d5adf473f686729c9f5a6bc6dc108cf750d13;hpb=0cbf992ea2fb9e247615e94c29b2083032a32152;p=util-vserver.git diff --git a/lib/syscall_setnamespace-v13.hc b/lib/syscall_setnamespace-v13.hc index ce7d5ad..915d67d 100644 --- a/lib/syscall_setnamespace-v13.hc +++ b/lib/syscall_setnamespace-v13.hc @@ -23,7 +23,9 @@ #include "vserver.h" static inline ALWAYSINLINE int -vc_set_namespace_v13(int UNUSED tmp) +vc_set_namespace_v13(xid_t xid, uint_least64_t mask) { - return vserver(VCMD_set_namespace, -1, 0); + if ((mask & (CLONE_NEWNS|CLONE_FS)) == 0) + return 0; + return vserver(VCMD_set_space_v0, CTX_USER2KERNEL(xid), 0); }