/Linux-v5.10/fs/afs/ |
D | mntpt.c | 81 if (fc->net_ns != src_as->net_ns) { in afs_mntpt_set_params() 82 put_net(fc->net_ns); in afs_mntpt_set_params() 83 fc->net_ns = get_net(src_as->net_ns); in afs_mntpt_set_params()
|
D | main.c | 67 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init() argument 70 struct afs_net *net = afs_net(net_ns); in afs_net_init() 73 net->net = net_ns; in afs_net_init() 150 static void __net_exit afs_net_exit(struct net *net_ns) in afs_net_exit() argument 152 struct afs_net *net = afs_net(net_ns); in afs_net_exit()
|
D | super.c | 422 return (as->net_ns == fc->net_ns && in afs_test_super() 433 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super() 510 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi() 526 struct afs_net *net = afs_net(as->net_ns); in afs_destroy_sbi() 529 put_net(as->net_ns); in afs_destroy_sbi() 638 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
|
/Linux-v5.10/kernel/ |
D | nsproxy.c | 41 .net_ns = &init_net, 110 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces() 111 if (IS_ERR(new_nsp->net_ns)) { in create_new_namespaces() 112 err = PTR_ERR(new_nsp->net_ns); in create_new_namespaces() 127 put_net(new_nsp->net_ns); in create_new_namespaces() 208 put_net(ns->net_ns); in free_nsproxy() 465 ret = validate_ns(nsset, &nsp->net_ns->ns); in validate_nsset()
|
/Linux-v5.10/fs/lockd/ |
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-v5.10/net/ |
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-v5.10/net/sctp/ |
D | sysctl.c | 343 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg() 388 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min() 416 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max() 454 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth()
|
/Linux-v5.10/fs/nfs/ |
D | namespace.c | 172 if (fc->net_ns != client->cl_net) { in nfs_d_automount() 173 put_net(fc->net_ns); in nfs_d_automount() 174 fc->net_ns = get_net(client->cl_net); in nfs_d_automount()
|
D | fs_context.c | 706 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param() 724 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param() 1459 if (fc->net_ns != net) { in nfs_init_fs_context() 1460 put_net(fc->net_ns); in nfs_init_fs_context() 1461 fc->net_ns = get_net(net); in nfs_init_fs_context()
|
D | nfs4namespace.c | 331 fc->net_ns); in try_location()
|
/Linux-v5.10/net/rxrpc/ |
D | Makefile | 23 net_ns.o \
|
/Linux-v5.10/include/linux/ |
D | nsproxy.h | 37 struct net *net_ns; member
|
D | fs_context.h | 98 struct net *net_ns; /* The network namespace for this mount */ member
|
/Linux-v5.10/fs/ |
D | fs_context.c | 243 fc->net_ns = get_net(current->nsproxy->net_ns); in alloc_fs_context() 335 get_net(fc->net_ns); in vfs_dup_fs_context() 449 put_net(fc->net_ns); in put_fs_context()
|
/Linux-v5.10/fs/cifs/ |
D | dns_resolve.c | 80 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
|
/Linux-v5.10/fs/proc/ |
D | proc_net.c | 106 p->net = get_net(current->nsproxy->net_ns); in bpf_iter_init_seq_net() 285 net = get_net(ns->net_ns); in get_proc_task_net()
|
/Linux-v5.10/fs/nfsd/ |
D | fault_inject.c | 50 struct net *net = current->nsproxy->net_ns; in fault_inject_write()
|
D | nfsctl.c | 157 return exports_net_open(current->nsproxy->net_ns, file); in exports_proc_open() 1344 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super() 1390 return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); in nfsd_fs_get_tree() 1407 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in nfsd_init_fs_context()
|
/Linux-v5.10/kernel/bpf/ |
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()
|
D | offload.c | 99 offload->netdev = dev_get_by_index(current->nsproxy->net_ns, in bpf_prog_offload_init() 364 struct net *net = current->nsproxy->net_ns; in bpf_map_offload_map_alloc()
|
D | devmap.c | 687 return __dev_map_update_elem(current->nsproxy->net_ns, in dev_map_update_elem() 747 return __dev_map_hash_update_elem(current->nsproxy->net_ns, in dev_map_hash_update_elem()
|
/Linux-v5.10/net/core/ |
D | net_namespace.c | 695 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid() 1344 net = get_net(nsproxy->net_ns); in netns_get() 1369 put_net(nsproxy->net_ns); in netns_install() 1370 nsproxy->net_ns = get_net(net); in netns_install()
|
/Linux-v5.10/drivers/net/netdevsim/ |
D | bus.c | 331 nsim_bus_dev->initial_net = current->nsproxy->net_ns; in nsim_bus_dev_new()
|
/Linux-v5.10/net/bpf/ |
D | test_run.c | 483 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_skb() 645 rxqueue = __netif_get_rx_queue(current->nsproxy->net_ns->loopback_dev, 0); in bpf_prog_test_run_xdp()
|
/Linux-v5.10/net/9p/ |
D | trans_fd.c | 986 err = __sock_create(current->nsproxy->net_ns, PF_INET, in p9_fd_create_tcp() 1037 err = __sock_create(current->nsproxy->net_ns, PF_UNIX, in p9_fd_create_unix()
|