Re: [Bugme-new] [Bug 11447] New: /proc/sys/net/ipv4/route/flush not found

3 messages, 3 authors, 2008-08-29 · open the first message on its own page

Re: [Bugme-new] [Bug 11447] New: /proc/sys/net/ipv4/route/flush not found

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2008-08-28 20:18:32

(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 [off-list ref]
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 [off-list ref]
    Signed-off-by: David S. Miller [off-list ref]

If I revert it, the problem doesn't occur.

Re: [Bugme-new] [Bug 11447] New: /proc/sys/net/ipv4/route/flush not found

From: David Miller <davem@davemloft.net>
Date: 2008-08-28 20:29:40

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 [off-list ref]
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 [off-list ref]
    Acked-by: Al Viro [off-list ref]
    Signed-off-by: David S. Miller [off-list ref]
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},
 	{ }
 };
 

Re: [Bugme-new] [Bug 11447] New: /proc/sys/net/ipv4/route/flush not found

From: François Valenduc <hidden>
Date: 2008-08-29 16:36:09

David Miller a écrit :
quoted hunk
From: Andrew Morton <akpm@linux-foundation.org>
Date: Thu, 28 Aug 2008 13:18:24 -0700

  
quoted
(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 [off-list ref]
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 [off-list ref]
    Acked-by: Al Viro [off-list ref]
    Signed-off-by: David S. Miller [off-list ref]
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},
 	{ }
 };
 


  
This commit indeed solves the problem.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help