]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit204631c11480720411973cd76f86c887d538c00a
tree17a56a96af0e00a1af452f0530997585803b6c7b
parent722814780ca839d800011753c266f40356db2612
[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