[UNIX]: Make the unix sysctl tables per-namespace
authorPavel Emelyanov <xemul@openvz.org>
Sat, 1 Dec 2007 12:51:01 +0000 (23:51 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:23 +0000 (14:55 -0800)
commit1597fbc0faf88c42edb3fe42e92e53b83c3f120e
tree17a56a96af0e00a1af452f0530997585803b6c7b
parent1d430b913c2e6293a80a4a422406bc9489a476ad
[UNIX]: Make the unix sysctl tables per-namespace

This is the core.

 * add the ctl_table_header on the struct net;
 * make the unix_sysctl_register and _unregister clone the table;
 * moves calls to them into per-net init and exit callbacks;
 * move the .data pointer in the proper place.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/unix/af_unix.c
net/unix/sysctl_net_unix.c