diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-05-19 16:45:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-19 16:45:33 -0400 |
commit | d62c612ef8a66be534a3ada598cfa28d40cd0b3c (patch) | |
tree | d076e1ceaaff2aca70883a915bfb771c56034487 /include/net/net_namespace.h | |
parent | 5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a (diff) |
netns: Introduce sysctl root for read-only net sysctls.
This one stores all ctl-heads in one list and restricts the
permissions not give write access to non-init net namespaces.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
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 aa540e6be502..8df751b3be55 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -201,8 +201,11 @@ extern void unregister_pernet_gen_device(int id, struct pernet_operations *); | |||
201 | struct ctl_path; | 201 | struct ctl_path; |
202 | struct ctl_table; | 202 | struct ctl_table; |
203 | struct ctl_table_header; | 203 | struct ctl_table_header; |
204 | |||
204 | extern struct ctl_table_header *register_net_sysctl_table(struct net *net, | 205 | extern struct ctl_table_header *register_net_sysctl_table(struct net *net, |
205 | const struct ctl_path *path, struct ctl_table *table); | 206 | const struct ctl_path *path, struct ctl_table *table); |
207 | extern struct ctl_table_header *register_net_sysctl_rotable( | ||
208 | const struct ctl_path *path, struct ctl_table *table); | ||
206 | extern void unregister_net_sysctl_table(struct ctl_table_header *header); | 209 | extern void unregister_net_sysctl_table(struct ctl_table_header *header); |
207 | 210 | ||
208 | #endif /* __NET_NET_NAMESPACE_H */ | 211 | #endif /* __NET_NET_NAMESPACE_H */ |