mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
[NETNS][FRAGS]: Duplicate sysctl tables for new namespaces.
Each namespace has to have own tables to tune their different parameters, so duplicate the tables and register them. All the tables in sub-namespaces are temporarily made read-only. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6ddc082223
commit
e4a2d5c2bc
4 changed files with 79 additions and 6 deletions
|
@ -16,6 +16,7 @@ struct sock;
|
|||
struct netns_ipv4 {
|
||||
#ifdef CONFIG_SYSCTL
|
||||
struct ctl_table_header *forw_hdr;
|
||||
struct ctl_table_header *frags_hdr;
|
||||
#endif
|
||||
struct ipv4_devconf *devconf_all;
|
||||
struct ipv4_devconf *devconf_dflt;
|
||||
|
|
|
@ -12,6 +12,7 @@ struct ctl_table_header;
|
|||
struct netns_sysctl_ipv6 {
|
||||
#ifdef CONFIG_SYSCTL
|
||||
struct ctl_table_header *table;
|
||||
struct ctl_table_header *frags_hdr;
|
||||
#endif
|
||||
struct inet_frags_ctl frags;
|
||||
int bindv6only;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue