X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_enternamespace-v13.hc;h=cbdaedeb64442fef37c0b4a7566105d550a62d9a;hb=952de6648abd3d7192f97f3335c016df365b3ae0;hp=e4dc1cfbf0e9b43c6dfa3974e10491fc90cd449b;hpb=60eb97440f168c25135c63ef3ce06cf6c0babdda;p=util-vserver.git diff --git a/lib/syscall_enternamespace-v13.hc b/lib/syscall_enternamespace-v13.hc index e4dc1cf..cbdaede 100644 --- a/lib/syscall_enternamespace-v13.hc +++ b/lib/syscall_enternamespace-v13.hc @@ -23,9 +23,13 @@ #include "vserver.h" static inline ALWAYSINLINE int -vc_enter_namespace_v13(xid_t xid, uint_least64_t mask) +vc_enter_namespace_v13(xid_t xid, uint_least64_t mask, uint32_t index) { if ((mask & (CLONE_NEWNS|CLONE_FS)) == 0) return 0; + if (index != 0) { + errno = EINVAL; + return -1; + } return vserver(VCMD_enter_space_v0, CTX_USER2KERNEL(xid), 0); }