diff options
author | Andre Noll <maan@systemlinux.org> | 2008-03-20 18:27:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-20 18:27:28 -0400 |
commit | 4f42c288e66a3395e94158badbd182b2dae8eccb (patch) | |
tree | 647a3d4fdeabdd36b29de8b4e8197123ee133fe6 | |
parent | 270637abff0cdf848b910b9f96ad342e1da61c66 (diff) |
[NET]: Fix permissions of /proc/net
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>
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 9a4da0aae02e..770de444eba0 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -2270,7 +2270,7 @@ static const struct pid_entry tgid_base_stuff[] = { | |||
2270 | DIR("fd", S_IRUSR|S_IXUSR, fd), | 2270 | DIR("fd", S_IRUSR|S_IXUSR, fd), |
2271 | DIR("fdinfo", S_IRUSR|S_IXUSR, fdinfo), | 2271 | DIR("fdinfo", S_IRUSR|S_IXUSR, fdinfo), |
2272 | #ifdef CONFIG_NET | 2272 | #ifdef CONFIG_NET |
2273 | DIR("net", S_IRUGO|S_IXUSR, net), | 2273 | DIR("net", S_IRUGO|S_IXUGO, net), |
2274 | #endif | 2274 | #endif |
2275 | REG("environ", S_IRUSR, environ), | 2275 | REG("environ", S_IRUSR, environ), |
2276 | INF("auxv", S_IRUSR, pid_auxv), | 2276 | INF("auxv", S_IRUSR, pid_auxv), |