-
- Downloads
[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>
Showing
- drivers/isdn/divert/divert_procfs.c 4 additions, 3 deletionsdrivers/isdn/divert/divert_procfs.c
- drivers/isdn/hardware/eicon/diva_didd.c 3 additions, 2 deletionsdrivers/isdn/hardware/eicon/diva_didd.c
- drivers/isdn/hysdn/hysdn_procconf.c 3 additions, 2 deletionsdrivers/isdn/hysdn/hysdn_procconf.c
- drivers/net/bonding/bond_main.c 4 additions, 3 deletionsdrivers/net/bonding/bond_main.c
- drivers/net/hamradio/bpqether.c 3 additions, 2 deletionsdrivers/net/hamradio/bpqether.c
- drivers/net/hamradio/scc.c 3 additions, 2 deletionsdrivers/net/hamradio/scc.c
- drivers/net/hamradio/yam.c 3 additions, 2 deletionsdrivers/net/hamradio/yam.c
- drivers/net/ibmveth.c 4 additions, 3 deletionsdrivers/net/ibmveth.c
- drivers/net/pppoe.c 3 additions, 2 deletionsdrivers/net/pppoe.c
- drivers/net/pppol2tp.c 3 additions, 2 deletionsdrivers/net/pppol2tp.c
- drivers/net/tokenring/lanstreamer.c 3 additions, 2 deletionsdrivers/net/tokenring/lanstreamer.c
- drivers/net/tokenring/olympic.c 5 additions, 4 deletionsdrivers/net/tokenring/olympic.c
- drivers/net/wireless/hostap/hostap_main.c 4 additions, 3 deletionsdrivers/net/wireless/hostap/hostap_main.c
- drivers/net/wireless/strip.c 3 additions, 2 deletionsdrivers/net/wireless/strip.c
- fs/proc/Makefile 1 addition, 0 deletionsfs/proc/Makefile
- fs/proc/internal.h 5 additions, 0 deletionsfs/proc/internal.h
- fs/proc/root.c 3 additions, 5 deletionsfs/proc/root.c
- include/linux/proc_fs.h 19 additions, 25 deletionsinclude/linux/proc_fs.h
- include/net/net_namespace.h 5 additions, 0 deletionsinclude/net/net_namespace.h
- net/802/tr.c 2 additions, 1 deletionnet/802/tr.c
Loading