From: Dave Jones Date: Thu, 28 Apr 2005 19:11:03 +0000 (-0700) Subject: [IPV4]: Incorrect permissions on route flush sysctl X-Git-Tag: v2.6.12-rc4~186 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e3e0360b711568fb8ba5973accf51d51e746abc;p=linux-2.6 [IPV4]: Incorrect permissions on route flush sysctl 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/route.c b/net/ipv4/route.c index bb90a0c3a9..a61a577f0f 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -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, },