From 5bf2e1fcf4cc953116f5b50f9292231e2a25cfec Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 31 Oct 2008 04:00:12 +0000 Subject: [PATCH] Filter out CLONE_NEWNS and CLONE_FS, as vc_get_space_default does. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2812 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- lib/syscall_getspacemask-v21.hc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/syscall_getspacemask-v21.hc b/lib/syscall_getspacemask-v21.hc index e4caa7c..1896bef 100644 --- a/lib/syscall_getspacemask-v21.hc +++ b/lib/syscall_getspacemask-v21.hc @@ -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); } -- 1.8.1.5