Files
kernel_xiaomi_sm8250/include/linux
Eric W. Biederman 2b1e300a9d [NETNS]: Fix /proc/net breakage
Well I clearly goofed when I added the initial network namespace support
for /proc/net.  Currently things work but there are odd details visible to
user space, even when we have a single network namespace.

Since we do not cache proc_dir_entry dentries at the moment we can just
modify ->lookup to return a different directory inode depending on the
network namespace of the process looking at /proc/net, replacing the
current technique of using a magic and fragile follow_link method.

To accomplish that this patch:
- introduces a shadow_proc method to allow different dentries to
  be returned from proc_lookup.
- Removes the old /proc/net follow_link magic
- Fixes a weakness in our not caching of proc generic dentries.

As shadow_proc uses a task struct to decided which dentry to return we can
go back later and fix the proc generic caching without modifying any code
that uses the shadow_proc method.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-12-02 00:33:17 +11:00
..
2007-10-17 22:51:13 +02:00
2007-10-17 08:43:03 -07:00
2007-10-18 14:37:20 -07:00
2007-11-05 18:10:28 -05:00
2007-10-21 02:37:45 -04:00
2007-10-17 08:43:07 -07:00
2007-10-18 14:37:29 -07:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2007-10-20 03:10:57 +02:00
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:36 -07:00
2007-10-19 23:07:36 +02:00
2007-10-21 02:37:45 -04:00
2007-10-19 11:53:36 -07:00
2007-11-02 08:47:25 +01:00
2007-10-20 02:00:58 +01:00
2007-10-18 14:37:21 -07:00
2007-10-22 08:13:19 -07:00
2007-10-22 08:13:20 -07:00
2007-10-29 07:41:32 -07:00
2007-10-22 08:13:21 -07:00
2007-10-17 08:43:02 -07:00
2007-10-17 08:43:01 -07:00
2007-10-18 14:37:31 -07:00
2007-10-19 11:53:42 -07:00
2007-11-14 18:45:40 -08:00
2007-11-15 19:24:02 +01:00
2007-10-22 00:56:52 -04:00
2007-10-27 23:42:32 -04:00
2007-10-18 14:37:32 -07:00
2007-11-05 15:12:32 -08:00
2007-10-17 08:43:01 -07:00
2007-10-19 11:53:49 -07:00
2007-10-25 15:02:50 +10:00
2007-10-25 15:02:50 +10:00
2007-11-05 18:10:28 -05:00
2007-10-19 11:53:55 -07:00
2007-10-17 08:42:55 -07:00
2007-10-23 15:49:54 +10:00
2007-10-19 11:53:54 -07:00
2007-10-19 11:53:44 -07:00
2007-11-07 04:15:12 -08:00
2007-10-19 17:19:16 -04:00
2007-10-17 08:42:58 -07:00
2007-10-19 11:53:34 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-17 08:43:04 -07:00
2007-10-19 11:53:41 -07:00
2007-12-02 00:33:17 +11:00
2007-10-17 08:42:56 -07:00
2007-10-22 08:13:20 -07:00
2007-11-02 08:47:06 +01:00
2007-10-19 11:53:44 -07:00
2007-10-19 11:53:44 -07:00
2007-10-17 08:43:01 -07:00
2007-11-09 22:39:38 +01:00
2007-10-18 14:37:23 -07:00
2007-10-17 08:42:53 -07:00
2007-10-29 07:41:33 -07:00
2007-10-23 13:47:31 -05:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:55 +10:00
2007-10-23 15:49:54 +10:00
2007-10-23 15:49:54 +10:00
2007-10-17 08:42:56 -07:00
2007-10-19 11:53:34 -07:00
2007-10-17 08:43:02 -07:00