Lines Matching full:net
3 * sysctl_net.c: sysctl interface to net subsystem.
6 * Added /proc/sys/net directories for each protocol family. [MS]
20 #include <net/sock.h>
23 #include <net/ip.h>
45 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_permissions() local
48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
59 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_set_ownership() local
63 ns_root_uid = make_kuid(net->user_ns, 0); in net_ctl_set_ownership()
67 ns_root_gid = make_kgid(net->user_ns, 0); in net_ctl_set_ownership()
78 static int __net_init sysctl_net_init(struct net *net) in sysctl_net_init() argument
80 setup_sysctl_set(&net->sysctls, &net_sysctl_root, is_seen); in sysctl_net_init()
84 static void __net_exit sysctl_net_exit(struct net *net) in sysctl_net_exit() argument
86 retire_sysctl_set(&net->sysctls); in sysctl_net_exit()
100 * registering "/proc/sys/net" as an empty directory not in a in net_sysctl_init()
103 net_header = register_sysctl_sz("net", empty, 0); in net_sysctl_init()
120 * data segment, and rather into the heap where a per-net object was
123 static void ensure_safe_net_sysctl(struct net *net, const char *path, in ensure_safe_net_sysctl() argument
128 pr_debug("Registering net sysctl (net %p): %s\n", net, path); in ensure_safe_net_sysctl()
163 struct ctl_table_header *register_net_sysctl_sz(struct net *net, in register_net_sysctl_sz() argument
168 if (!net_eq(net, &init_net)) in register_net_sysctl_sz()
169 ensure_safe_net_sysctl(net, path, table, table_size); in register_net_sysctl_sz()
171 return __register_sysctl_table(&net->sysctls, path, table, table_size); in register_net_sysctl_sz()