linux/net
Eric W. Biederman 457c4cbc5a [NET]: Make /proc/net per network namespace
This patch makes /proc/net per network namespace.  It modifies the global
variables proc_net and proc_net_stat to be per network namespace.
The proc_net file helpers are modified to take a network namespace argument,
and all of their callers are fixed to pass &init_net for that argument.
This ensures that all of the /proc/net files are only visible and
usable in the initial network namespace until the code behind them
has been updated to be handle multiple network namespaces.

Making /proc/net per namespace is necessary as at least some files
in /proc/net depend upon the set of network devices which is per
network namespace, and even more files in /proc/net have contents
that are relevant to a single network namespace.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:49:06 -07:00
..
9p 9p: fix bad error path in conversion routines 2007-08-23 10:25:05 -05:00
802 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
8021q [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
appletalk [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
atm [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ax25 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
bluetooth [BLUETOOTH]: Fix non-COMPAT build of hci_sock.c 2007-09-12 14:10:58 +02:00
bridge [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
core [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
dccp [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
decnet [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
econet [ECONET]: remove econet_packet_type on unload 2007-08-14 17:25:20 -07:00
ethernet [NET] ethernet: optimize memcpy and memset 2007-10-10 16:48:26 -07:00
ieee80211 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ipv4 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ipv6 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
ipx [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
irda [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
iucv [S390] Convert to smp_call_function_single. 2007-07-27 12:29:17 +02:00
key [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
lapb [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
llc [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
mac80211 [MAC80211]: make assoc_ap a flag 2007-10-10 16:48:58 -07:00
netfilter [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
netlabel [NetLabel]: add missing rcu_dereference() calls in the LSM domain mapping hash table 2007-08-07 17:53:10 -07:00
netlink [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
netrom [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
packet [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
rfkill [NET] RFKILL: Fix whitespace errors. 2007-07-19 10:44:38 +09:00
rose [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
rxrpc [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
sched [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
sctp [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
sunrpc [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
tipc [TIPC]: Clean up duplicate includes in net/tipc/ 2007-08-13 22:52:07 -07:00
unix [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
wanrouter [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
wireless [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
x25 [NET]: Make /proc/net per network namespace 2007-10-10 16:49:06 -07:00
xfrm [XFRM]: xfrm audit calls 2007-10-10 16:49:02 -07:00
Kconfig 9p: Reorganization of 9p file system code 2007-07-14 15:13:40 -05:00
Makefile 9p: Reorganization of 9p file system code 2007-07-14 15:13:40 -05:00
TUNABLE
compat.c O_CLOEXEC for SCM_RIGHTS 2007-07-16 09:05:45 -07:00
nonet.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
socket.c [NET]: Zero length write() on socket should not simply return 0. 2007-09-27 13:52:00 -07:00
sysctl_net.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00