]> err.no Git - linux-2.6/commitdiff
[IPV4]: Incorrect permissions on route flush sysctl
authorDave Jones <davej@redhat.com>
Thu, 28 Apr 2005 19:11:03 +0000 (12:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2005 19:11:03 +0000 (12:11 -0700)
This has been brought up before.. http://lkml.org/lkml/2000/1/21/116
but didnt seem to get resolved.  This morning I got someone
file a bugzilla about it breaking sysctl(8).

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c

index bb90a0c3a91eb52020d0db0e8b4f94d30e02d596..a61a577f0f2b2fa55652b137d96cbddfa8c665cc 100644 (file)
@@ -2843,7 +2843,7 @@ ctl_table ipv4_route_table[] = {
                .procname       = "flush",
                .data           = &flush_delay,
                .maxlen         = sizeof(int),
-               .mode           = 0644,
+               .mode           = 0200,
                .proc_handler   = &ipv4_sysctl_rtcache_flush,
                .strategy       = &ipv4_sysctl_rtcache_flush_strategy,
        },