ipv4: mode 0555 in ipv4_skeleton
authorHugh Dickins <hugh@veritas.com>
Wed, 27 Aug 2008 09:35:18 +0000 (02:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2008 09:35:18 +0000 (02:35 -0700)
vpnc on today's kernel says Cannot open "/proc/sys/net/ipv4/route/flush":
d--------- 0 root root 0 2008-08-26 11:32 /proc/sys/net/ipv4/route
d--------- 0 root root 0 2008-08-26 19:16 /proc/sys/net/ipv4/neigh

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c

index e91bafeb32f4590660a084998dbc7531b85f63ef..6ee5354c9aa1f52b38104e3b7f60228de14683a7 100644 (file)
@@ -3121,9 +3121,9 @@ static struct ctl_table empty[1];
 static struct ctl_table ipv4_skeleton[] =
 {
        { .procname = "route", .ctl_name = NET_IPV4_ROUTE,
-         .child = ipv4_route_table},
+         .mode = 0555, .child = ipv4_route_table},
        { .procname = "neigh", .ctl_name = NET_IPV4_NEIGH,
-         .child = empty},
+         .mode = 0555, .child = empty},
        { }
 };