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 2f4520d35d89ca6c5cd129c38e3b11f0283b7d1b Author: Al Viro <viro@zeniv.linux.org.uk> Date: Mon Aug 25 15:17:44 2008 -0700 ipv4: sysctl fixes net.ipv4.neigh should be a part of skeleton to avoid ordering problems Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net> If I revert it, the problem doesn't occur.
Reply-To: akpm@linux-foundation.org (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Thu, 28 Aug 2008 11:06:22 -0700 (PDT) bugme-daemon@bugzilla.kernel.org 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: shemminger@linux-foundation.org > ReportedBy: francois.valenduc@tvcablenet.be > > > 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 2f4520d35d89ca6c5cd129c38e3b11f0283b7d1b > Author: Al Viro <viro@zeniv.linux.org.uk> > Date: Mon Aug 25 15:17:44 2008 -0700 > > ipv4: sysctl fixes > > net.ipv4.neigh should be a part of skeleton to avoid ordering problems > > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> > Signed-off-by: David S. Miller <davem@davemloft.net> > > If I revert it, the problem doesn't occur. > >
From: Andrew Morton <akpm@linux-foundation.org> Date: Thu, 28 Aug 2008 13:18:24 -0700 > > (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 <hugh@veritas.com> 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 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> diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e91bafe..6ee5354 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -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}, { } };
Reply-To: =?ISO-8859-1?Q?Fran=E7ois_Valenduc?= <francois.valenduc@tvcablenet.be> David Miller a