-// $Id: syscall_setnamespace-v13.hc,v 1.1 2004/02/27 04:39:09 ensc Exp $ --*- c -*--
+// $Id: syscall_setnamespace-v13.hc 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*--
// Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
#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, 0, 0);
+ if ((mask & (CLONE_NEWNS|CLONE_FS)) == 0)
+ return 0;
+ return vserver(VCMD_set_space_v0, CTX_USER2KERNEL(xid), 0);
}