Filter out CLONE_NEWNS and CLONE_FS, as vc_get_space_default does.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Fri, 31 Oct 2008 04:00:12 +0000 (04:00 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Fri, 31 Oct 2008 04:00:12 +0000 (04:00 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2812 94cd875c-1c1d-0410-91d2-eb244daf1a30

lib/syscall_getspacemask-v21.hc

index e4caa7c..1896bef 100644 (file)
@@ -28,5 +28,5 @@ vc_get_space_mask_spaces(int UNUSED tmp)
   int ret = vserver(VCMD_get_space_mask, 0, &data);
   if (ret)
     return ret;
-  return data.mask;
+  return data.mask & ~(CLONE_NEWNS|CLONE_FS);
 }