diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-05-19 13:45:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-19 13:45:33 -0700 |
commit | d62c612ef8a66be534a3ada598cfa28d40cd0b3c (patch) | |
tree | d076e1ceaaff2aca70883a915bfb771c56034487 /include/net/net_namespace.h | |
parent | 5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a (diff) | |
download | blackbird-op-linux-d62c612ef8a66be534a3ada598cfa28d40cd0b3c.tar.gz blackbird-op-linux-d62c612ef8a66be534a3ada598cfa28d40cd0b3c.zip |
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 *); struct ctl_path; struct ctl_table; struct ctl_table_header; + extern struct ctl_table_header *register_net_sysctl_table(struct net *net, const struct ctl_path *path, struct ctl_table *table); +extern struct ctl_table_header *register_net_sysctl_rotable( + const struct ctl_path *path, struct ctl_table *table); extern void unregister_net_sysctl_table(struct ctl_table_header *header); #endif /* __NET_NET_NAMESPACE_H */ |