argl... fixed overflow when appending the '/'
[util-vserver.git] / util-vserver / src / vattribute.c
index 8b07ff7..bb78491 100644 (file)
@@ -141,10 +141,14 @@ static void
 parseSecure(struct vc_ctx_flags UNUSED * flags,
            struct vc_ctx_caps  UNUSED * caps)
 {
-  caps->ccaps = ~0ull;
+  caps->ccaps = ~vc_get_insecureccaps();
   caps->cmask = ~0ull;
-  caps->bcaps = ~vc_get_insecurecaps();
+  caps->bcaps = ~vc_get_insecurebcaps();
   caps->bmask = ~0ull;
+
+    // TODO: generalize this
+  flags->flagword = VC_VXF_HIDE_NETIF;
+  flags->mask     = VC_VXF_HIDE_NETIF;
 }
 
 int main(int argc, char *argv[])