From: Enrico Scholz Date: Wed, 22 Sep 2004 20:53:15 +0000 (+0000) Subject: set the "secure" flags on '--secure' manually. This is a crude hack X-Git-Tag: IPSENTINEL_VERSION_0_12~294 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378676b9a1e2fa0d603de1f3f0823fb7646bb057;p=util-vserver.git set the "secure" flags on '--secure' manually. This is a crude hack and must be solved better. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1698 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/vattribute.c b/util-vserver/src/vattribute.c index d3e17d7..bb78491 100644 --- a/util-vserver/src/vattribute.c +++ b/util-vserver/src/vattribute.c @@ -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[])