diff options
| author | Pavel Emelyanov <[email protected]> | 2008-05-19 20:45:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-05-19 20:45:33 +0000 |
| commit | d62c612ef8a66be534a3ada598cfa28d40cd0b3c (patch) | |
| tree | d076e1ceaaff2aca70883a915bfb771c56034487 /include/net/net_namespace.h | |
| parent | tipc: Cosmetic cleanup of topology service code (diff) | |
| download | kernel-d62c612ef8a66be534a3ada598cfa28d40cd0b3c.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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 */ |
