diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-01 07:51:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:55:23 -0500 |
commit | 1597fbc0faf88c42edb3fe42e92e53b83c3f120e (patch) | |
tree | 17a56a96af0e00a1af452f0530997585803b6c7b /include/net/net_namespace.h | |
parent | 1d430b913c2e6293a80a4a422406bc9489a476ad (diff) |
[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>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index b0cf07519b81..f97b2a4469ae 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -11,6 +11,8 @@ | |||
11 | struct proc_dir_entry; | 11 | struct proc_dir_entry; |
12 | struct net_device; | 12 | struct net_device; |
13 | struct sock; | 13 | struct sock; |
14 | struct ctl_table_header; | ||
15 | |||
14 | struct net { | 16 | struct net { |
15 | atomic_t count; /* To decided when the network | 17 | atomic_t count; /* To decided when the network |
16 | * namespace should be freed. | 18 | * namespace should be freed. |
@@ -41,6 +43,7 @@ struct net { | |||
41 | 43 | ||
42 | /* unix sockets */ | 44 | /* unix sockets */ |
43 | int sysctl_unix_max_dgram_qlen; | 45 | int sysctl_unix_max_dgram_qlen; |
46 | struct ctl_table_header *unix_ctl; | ||
44 | }; | 47 | }; |
45 | 48 | ||
46 | #ifdef CONFIG_NET | 49 | #ifdef CONFIG_NET |