Skip to contentSkip to conversation

Incorrect permissions on route flush sysctl

PATCH Dave Jones 2 participants 3 messages Apr 25, 2005 – Apr 28, 2005

Subsystems (3)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

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).

net/ipv4/route.c renamed from net/ipv4/route.c~ +1 -1
@@ -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,
 	},
author
#1 lore raw
Quoted 3 lines · Dave Jones

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).

And here's its ipv6 counterpart.

net/ipv6/route.c renamed from net/ipv6/route.c~ +1 -1
@@ -2005,7 +2005,7 @@ ctl_table ipv6_route_table[] = {
 		.procname	=	"flush",
          	.data		=	&flush_delay,
 		.maxlen		=	sizeof(int),
-		.mode		=	0644,
+		.mode		=	0200,
          	.proc_handler	=	&ipv6_sysctl_rtcache_flush
 	},
 	{