| /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() 631 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
|
| /linux/kernel/ |
| H A D | nsproxy.c | 42 .net_ns = &init_net, 72 put_net(ns->net_ns); in nsproxy_free() 130 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces() 131 if (IS_ERR(new_nsp->net_ns)) { in create_new_namespaces() 132 err = PTR_ERR(new_nsp->net_ns); in create_new_namespaces() 147 put_net(new_nsp->net_ns); in create_new_namespaces() 496 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 | 311 net = current->nsproxy->net_ns; in netns_bpf_prog_attach() 400 ret = __netns_bpf_prog_detach(current->nsproxy->net_ns, type, prog); in netns_bpf_prog_detach()
|
| H A D | offload.c | 242 netdev = dev_get_by_index(current->nsproxy->net_ns, attr->prog_ifindex); in bpf_prog_dev_bound_init() 506 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() 382 get_net(fc->net_ns); in vfs_dup_fs_context() 502 put_net(fc->net_ns); in put_fs_context()
|
| H A D | nsfs.c | 699 ns_ref_active_get(ns->net_ns); in nsproxy_ns_active_get() 711 ns_ref_active_put(ns->net_ns); in nsproxy_ns_active_put()
|
| /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()
|
| H A D | fs_context.c | 919 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param() 940 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param() 963 if (fc->net_ns != &init_net) in nfs_fs_context_parse_param() 1732 if (fc->net_ns != net) { in nfs_init_fs_context() 1733 put_net(fc->net_ns); in nfs_init_fs_context() 1734 fc->net_ns = get_net(net); in nfs_init_fs_context() 1756 if (fc->net_ns != &init_net) in nfs_init_fs_context()
|
| /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 | 99 p->net = get_net_track(current->nsproxy->net_ns, &p->ns_tracker, in bpf_iter_init_seq_net() 280 net = get_net(ns->net_ns); in get_proc_task_net()
|
| /linux/drivers/net/ |
| H A D | netkit.c | 537 dev = netkit_dev_fetch(current->nsproxy->net_ns, attr->target_ifindex, in netkit_prog_attach() 577 dev = netkit_dev_fetch(current->nsproxy->net_ns, attr->target_ifindex, in netkit_prog_detach() 608 dev = netkit_dev_fetch(current->nsproxy->net_ns, in netkit_prog_query() 792 dev = netkit_dev_fetch(current->nsproxy->net_ns, in netkit_link_attach()
|
| /linux/net/core/ |
| H A D | net_namespace.c | 805 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid() 1520 net = get_net(nsproxy->net_ns); in netns_get() 1540 put_net(nsproxy->net_ns); in netns_install() 1541 nsproxy->net_ns = get_net(net); in netns_install()
|
| /linux/fs/smb/server/ |
| H A D | transport_tcp.c | 462 ret = sock_create_kern(current->nsproxy->net_ns, PF_INET6, SOCK_STREAM, in create_socket() 467 ret = sock_create_kern(current->nsproxy->net_ns, PF_INET, in create_socket()
|
| /linux/net/9p/ |
| H A D | trans_fd.c | 890 err = inet_pton_with_scope(current->nsproxy->net_ns, AF_UNSPEC, addr, in p9_fd_create_tcp() 899 err = __sock_create(current->nsproxy->net_ns, stor.ss_family, in p9_fd_create_tcp() 951 err = __sock_create(current->nsproxy->net_ns, PF_UNIX, in p9_fd_create_unix()
|
| /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 | 990 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_skb() 1227 device = dev_get_by_index(current->nsproxy->net_ns, in xdp_convert_md_to_buff() 1346 rxqueue = __netif_get_rx_queue(current->nsproxy->net_ns->loopback_dev, 0); in bpf_prog_test_run_xdp() 1714 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_nf()
|
| /linux/fs/nfsd/ |
| H A D | nfsctl.c | 1288 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super() 1338 return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); in nfsd_fs_get_tree() 1355 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in nfsd_init_fs_context() 1382 return exports_net_open(current->nsproxy->net_ns, file); in exports_proc_open()
|