set the "secure" flags on '--secure' manually. This is a crude hack
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Sep 2004 20:53:15 +0000 (20:53 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Sep 2004 20:53:15 +0000 (20:53 +0000)
and must be solved better.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1698 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vattribute.c

index d3e17d7..bb78491 100644 (file)
@@ -146,8 +146,9 @@ parseSecure(struct vc_ctx_flags UNUSED * flags,
   caps->bcaps = ~vc_get_insecurebcaps();
   caps->bmask = ~0ull;
 
-  flags->flagword = ~vc_get_insecureflags();
-  flags->mask     =  vc_get_insecureflags();
+    // TODO: generalize this
+  flags->flagword = VC_VXF_HIDE_NETIF;
+  flags->mask     = VC_VXF_HIDE_NETIF;
 }
 
 int main(int argc, char *argv[])