mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
5b06c85c3b
commit
d62c612ef8
2 changed files with 33 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue