linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fix permissions of /proc/net
@ 2008-03-19 11:51 Andre Noll
  2008-03-20  7:56 ` Pavel Emelyanov
  0 siblings, 1 reply; 3+ messages in thread
From: Andre Noll @ 2008-03-19 11:51 UTC (permalink / raw)
  To: Pavel Emelyanov; +Cc: Eric W. Biederman, David S. Miller, LKML

[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

commit f205a545ee62e0f0f797c1e2b0bd2062d96414b3
Author: Andre Noll <maan@congo.fml.local>
Date:   Wed Mar 19 11:39:55 2008 +0100

From: Andre Noll <maan@systemlinux.org>

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.

Signed-off-by: Andre Noll <maan@systemlinux.org>

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 8a10f6f..81d7d14 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2290,7 +2290,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),
-- 
The only person who always got his work done by Friday was Robinson Crusoe

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Fix permissions of /proc/net
  2008-03-19 11:51 Fix permissions of /proc/net Andre Noll
@ 2008-03-20  7:56 ` Pavel Emelyanov
  2008-03-20 22:27   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Emelyanov @ 2008-03-20  7:56 UTC (permalink / raw)
  To: Andre Noll, David S. Miller
  Cc: Eric W. Biederman, LKML, Benjamin Thery, Andrew Morton

Andre Noll wrote:
> commit f205a545ee62e0f0f797c1e2b0bd2062d96414b3
> Author: Andre Noll <maan@congo.fml.local>
> Date:   Wed Mar 19 11:39:55 2008 +0100
> 
> From: Andre Noll <maan@systemlinux.org>
> 
> 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 also broke the postfix, as it was reported in bug #10286
and described in detail by Benjamin.

> 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.

And it fixes the problem reported by Benjamin.
Thanks, Andre!

> Signed-off-by: Andre Noll <maan@systemlinux.org>

Acked-by: Pavel Emelyanov <xemul@openvz.org>
 
> diff --git a/fs/proc/base.c b/fs/proc/base.c
> index 8a10f6f..81d7d14 100644
> --- a/fs/proc/base.c
> +++ b/fs/proc/base.c
> @@ -2290,7 +2290,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),


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fix permissions of /proc/net
  2008-03-20  7:56 ` Pavel Emelyanov
@ 2008-03-20 22:27   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2008-03-20 22:27 UTC (permalink / raw)
  To: xemul; +Cc: maan, ebiederm, linux-kernel, benjamin.thery, akpm

From: Pavel Emelyanov <xemul@openvz.org>
Date: Thu, 20 Mar 2008 10:56:31 +0300

> Andre Noll wrote:
> > Signed-off-by: Andre Noll <maan@systemlinux.org>
> 
> Acked-by: Pavel Emelyanov <xemul@openvz.org>

Applied, thanks everyone.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-20 22:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 11:51 Fix permissions of /proc/net Andre Noll
2008-03-20  7:56 ` Pavel Emelyanov
2008-03-20 22:27   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).