]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NET]: Fix permissions of /proc/net
authorAndre Noll <maan@systemlinux.org>
Thu, 20 Mar 2008 22:27:28 +0000 (15:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2008 22:27:28 +0000 (15:27 -0700)
commit e9720ac ([NET]: Make /proc/net a symlink on /proc/self/net (v3))
broke ganglia and probably other applications that read /proc/net/dev.

This is due to the change of permissions of /proc/net that was
introduced in that commit.

Before: dr-xr-xr-x 5 root root 0 Mar 19 11:30 /proc/net
After: dr-xr--r-- 5 root root 0 Mar 19 11:29 /proc/self/net

This patch restores the permissions to the old value which makes
ganglia happy again.

Pavel Emelyanov says:

This also broke the postfix, as it was reported in bug #10286
and described in detail by Benjamin.

Signed-off-by: Andre Noll <maan@systemlinux.org>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/proc/base.c

index 9a4da0aae02e442e5be76fa84a0907a43e1bf848..770de444eba0b1cea185284f9b2f1760c7ddab30 100644 (file)
@@ -2270,7 +2270,7 @@ static const struct pid_entry tgid_base_stuff[] = {
        DIR("fd",         S_IRUSR|S_IXUSR, fd),
        DIR("fdinfo",     S_IRUSR|S_IXUSR, fdinfo),
 #ifdef CONFIG_NET
-       DIR("net",        S_IRUGO|S_IXUSR, net),
+       DIR("net",        S_IRUGO|S_IXUGO, net),
 #endif
        REG("environ",    S_IRUSR, environ),
        INF("auxv",       S_IRUSR, pid_auxv),