| /linux/fs/afs/ |
| H A D | mntpt.c | 80 if (fc->net_ns != src_as->net_ns) { in afs_mntpt_set_params() 81 put_net(fc->net_ns); in afs_mntpt_set_params() 82 fc->net_ns = get_net(src_as->net_ns); in afs_mntpt_set_params()
|
| H A D | main.c | 65 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init() argument 68 struct afs_net *net = afs_net(net_ns); in afs_net_init() 71 net->net = net_ns; in afs_net_init() 141 static void __net_exit afs_net_exit(struct net *net_ns) in afs_net_exit() argument 143 struct afs_net *net = afs_net(net_ns); in afs_net_exit()
|
| H A D | super.c | 425 return (as->net_ns == fc->net_ns && in afs_test_super() 436 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super() 507 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi() 525 put_net(as->net_ns); in afs_destroy_sbi() 632 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
|
| /linux/kernel/ |
| H A D | nsproxy.c | 43 .net_ns = &init_net, 73 put_net(ns->net_ns); in nsproxy_free() 132 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces() 133 if (IS_ERR(new_nsp->net_ns)) { in create_new_namespaces() 134 err = PTR_ERR(new_nsp->net_ns); in create_new_namespaces() 149 put_net(new_nsp->net_ns); in create_new_namespaces() 508 ret = validate_ns(nsset, &nsp->net_ns->ns); in validate_nsset()
|
| /linux/fs/lockd/ |
| H A D | procfs.c | 25 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, in nlm_end_grace_write() 52 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, in nlm_end_grace_read()
|
| /linux/kernel/bpf/ |
| H A D | tcx.c | 13 struct net *net = current->nsproxy->net_ns; in tcx_prog_attach() 62 struct net *net = current->nsproxy->net_ns; in tcx_prog_detach() 125 struct net *net = current->nsproxy->net_ns; in tcx_prog_query() 312 struct net *net = current->nsproxy->net_ns; in tcx_link_attach()
|
| H A D | net_namespace.c | 306 net = current->nsproxy->net_ns; in netns_bpf_prog_attach() 395 ret = __netns_bpf_prog_detach(current->nsproxy->net_ns, type, prog); in netns_bpf_prog_detach()
|
| H A D | offload.c | 258 netdev = dev_get_by_index(current->nsproxy->net_ns, attr->prog_ifindex); in bpf_prog_dev_bound_init() 528 struct net *net = current->nsproxy->net_ns; in bpf_map_offload_map_alloc()
|
| /linux/net/ |
| H A D | sysctl_net.c | 33 return ¤t->nsproxy->net_ns->sysctls; in net_ctl_header_lookup() 38 return ¤t->nsproxy->net_ns->sysctls == set; in is_seen()
|
| /linux/fs/ |
| H A D | fs_context.c | 276 fc->net_ns = get_net(current->nsproxy->net_ns); in alloc_fs_context() 385 get_net(fc->net_ns); in vfs_dup_fs_context() 505 put_net(fc->net_ns); in put_fs_context()
|
| H A D | nsfs.c | 698 ns_ref_active_get(ns->net_ns); in nsproxy_ns_active_get() 710 ns_ref_active_put(ns->net_ns); in nsproxy_ns_active_put()
|
| H A D | pidfs.c | 652 if (!ns_ref_get(nsp->net_ns)) in pidfd_ioctl() 654 ns_common = to_ns_common(nsp->net_ns); in pidfd_ioctl()
|
| /linux/fs/nfs/ |
| H A D | namespace.c | 178 if (fc->net_ns != client->cl_net) { in nfs_d_automount() 179 put_net(fc->net_ns); in nfs_d_automount() 180 fc->net_ns = get_net(client->cl_net); in nfs_d_automount()
|
| /linux/include/linux/ |
| H A D | nsfs.h | 31 struct net *: current->nsproxy->net_ns, \
|
| H A D | nsproxy.h | 38 struct net *net_ns; member
|
| H A D | fs_context.h | 98 struct net *net_ns; /* The network namespace for this mount */ member
|
| /linux/fs/smb/client/ |
| H A D | dns_resolve.c | 28 rc = dns_query(current->nsproxy->net_ns, NULL, name, in resolve_name()
|
| /linux/fs/proc/ |
| H A D | proc_net.c | 100 p->net = get_net_track(current->nsproxy->net_ns, &p->ns_tracker, in bpf_iter_init_seq_net() 282 net = get_net(ns->net_ns); in get_proc_task_net()
|
| /linux/net/core/ |
| H A D | net_namespace.c | 814 net = get_net(nsproxy->net_ns); 1530 net = get_net(nsproxy->net_ns); in netns_put() 1550 put_net(nsproxy->net_ns); in netns_owner() 1551 nsproxy->net_ns = get_net(net); in netns_owner()
|
| /linux/fs/smb/server/ |
| H A D | transport_tcp.c | 765 ret = sock_create_kern(current->nsproxy->net_ns, PF_INET6, SOCK_STREAM, 770 ret = sock_create_kern(current->nsproxy->net_ns, PF_INET,
|
| /linux/net/netfilter/ |
| H A D | nf_bpf_link.c | 212 struct net *net = current->nsproxy->net_ns; in bpf_nf_link_attach()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 1040 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_skb() 1300 device = dev_get_by_index(current->nsproxy->net_ns, in xdp_convert_md_to_buff() 1419 rxqueue = __netif_get_rx_queue(current->nsproxy->net_ns->loopback_dev, 0); in bpf_prog_test_run_xdp() 1786 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_nf()
|
| /linux/drivers/net/netdevsim/ |
| H A D | bus.c | 463 nsim_bus_dev->initial_net = current->nsproxy->net_ns; in nsim_bus_dev_new()
|
| /linux/fs/nfsd/ |
| H A D | nfsctl.c | 1310 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super() 1360 return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); in nfsd_init_fs_context() 1377 fc->user_ns = get_user_ns(fc->net_ns->user_ns); 1404 return exports_net_open(current->nsproxy->net_ns, file); in create_proc_exports_entry()
|
| /linux/net/sunrpc/ |
| H A D | rpc_pipe.c | 1167 return get_tree_keyed(fc, rpc_fill_super, get_net(fc->net_ns)); in rpc_fs_get_tree() 1184 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in rpc_init_fs_context()
|