New: /proc/sys/net/ipv4/route/flush not found
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]/
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface).
Quoted 43 lines · On Thu, 28 Aug 2008 11:06:22 -0700 (PDT) [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=11447
Summary: /proc/sys/net/ipv4/route/flush not found Product: Networking Version: 2.5 KernelVersion: 2.6.27-rc4-git7 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: IPV4 AssignedTo: [email protected] ReportedBy: [email protected]Latest working kernel version: 2.6.27-rc4 Earliest failing kernel version: probably 2.6.27-rc4-git7
Distribution: Gentoo
Hardware Environment:
Software Environment:
Problem Description:When the lo interface is initialized, the following error occurs:
can't open/proc/sys/net/ipv4/route/flush: no such file. After a bisection, it appears that the following commit is the first bad commit:commit
2f4520d35d89ca6c5cd129c38e3b11f0283b7d1bAuthor: Al Viro <[email protected]> Date: Mon Aug 25 15:17:44 2008 -0700ipv4: sysctl fixes
net.ipv4.neigh should be a part of skeleton to avoid ordering problems
Signed-off-by Al Viro <[email protected]>Signed-off-by David S. Miller <[email protected]>If I revert it, the problem doesn't occur.
From: Andrew Morton <[email protected]>
Date: Thu, 28 Aug 2008 13:18:24 -0700
Quoted 3 lines
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface).
Should be fixed in Linus's tree as of an hour ago, it was a permissions issue:
commit d994af0d50efc96b2077978fe9f066992639d525
Author: Hugh Dickins <[email protected]> Date: Wed Aug 27 02:35:18 2008 -0700
ipv4: mode 0555 in ipv4_skeleton
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
net/ipv4/route.c +2 -2
@@ -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}, { } };
Quoted 34 lines · David Miller
From: Andrew Morton <[email protected]>
Date: Thu, 28 Aug 2008 13:18:24 -0700Quoted 3 lines
(switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface).
Should be fixed in Linus's tree as of an hour ago, it was a permissions issue:
commit
d994af0d50efc96b2077978fe9f066992639d525Author: Hugh Dickins <[email protected]> Date: Wed Aug 27 02:35:18 2008 -0700ipv4: mode 0555 in
ipv4_skeletonvpnc 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/routed--------- 0 root root 0 2008-08-26 19:16/proc/sys/net/ipv4/neighSigned-off-by Hugh Dickins <[email protected]>Acked-by Al Viro <[email protected]>Signed-off-by David S. Miller <[email protected]>net/ipv4/route.c +0
-0@@ -3121,9 +3121,9 @@ static struct ctl_table empty[1]; static struct ctl_table ipv4_skeleton[] =
net/ipv4/route.c static struct ctl_table empty[1]; · line 3129
Quoted 10 lines
net/ipv4/route.c +2
-2{ { .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}, { } };
This commit indeed solves the problem.