Home
last modified time | relevance | path

Searched refs:net_ns (Results 1 – 25 of 57) sorted by relevance

123

/Linux-v6.6/fs/afs/
Dmntpt.c80 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()
Dmain.c67 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()
Dsuper.c423 return (as->net_ns == fc->net_ns && in afs_test_super()
434 return (as->net_ns == fc->net_ns && in afs_dynroot_test_super()
511 as->net_ns = get_net(fc->net_ns); in afs_alloc_sbi()
527 struct afs_net *net = afs_net(as->net_ns); in afs_destroy_sbi()
530 put_net(as->net_ns); in afs_destroy_sbi()
639 ctx->net = afs_net(fc->net_ns); in afs_init_fs_context()
/Linux-v6.6/kernel/
Dnsproxy.c41 .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()
205 put_net(ns->net_ns); in free_nsproxy()
479 ret = validate_ns(nsset, &nsp->net_ns->ns); in validate_nsset()
/Linux-v6.6/fs/lockd/
Dprocfs.c25 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-v6.6/net/sctp/
Dsysctl.c394 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg()
439 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min()
467 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max()
505 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth()
534 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_udp_port()
575 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_probe_interval()
/Linux-v6.6/kernel/bpf/
Dtcx.c13 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()
Dnet_namespace.c312 net = current->nsproxy->net_ns; in netns_bpf_prog_attach()
401 ret = __netns_bpf_prog_detach(current->nsproxy->net_ns, type, prog); in netns_bpf_prog_detach()
Doffload.c244 netdev = dev_get_by_index(current->nsproxy->net_ns, attr->prog_ifindex); in bpf_prog_dev_bound_init()
508 struct net *net = current->nsproxy->net_ns; in bpf_map_offload_map_alloc()
/Linux-v6.6/net/
Dsysctl_net.c33 return &current->nsproxy->net_ns->sysctls; in net_ctl_header_lookup()
38 return &current->nsproxy->net_ns->sysctls == set; in is_seen()
/Linux-v6.6/fs/nfs/
Dnamespace.c172 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()
Dfs_context.c824 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param()
845 len = rpc_pton(fc->net_ns, param->string, param->size, in nfs_fs_context_parse_param()
1616 if (fc->net_ns != net) { in nfs_init_fs_context()
1617 put_net(fc->net_ns); in nfs_init_fs_context()
1618 fc->net_ns = get_net(net); in nfs_init_fs_context()
Dnfs4namespace.c337 fc->net_ns, 0); in try_location()
/Linux-v6.6/fs/
Dfs_context.c294 fc->net_ns = get_net(current->nsproxy->net_ns); in alloc_fs_context()
407 get_net(fc->net_ns); in vfs_dup_fs_context()
523 put_net(fc->net_ns); in put_fs_context()
/Linux-v6.6/net/rxrpc/
DMakefile25 net_ns.o \
/Linux-v6.6/include/linux/
Dnsproxy.h37 struct net *net_ns; member
Dfs_context.h98 struct net *net_ns; /* The network namespace for this mount */ member
/Linux-v6.6/fs/smb/client/
Ddns_resolve.c68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip()
/Linux-v6.6/fs/proc/
Dproc_net.c99 p->net = get_net_track(current->nsproxy->net_ns, &p->ns_tracker, in bpf_iter_init_seq_net()
279 net = get_net(ns->net_ns); in get_proc_task_net()
/Linux-v6.6/net/core/
Dnet_namespace.c712 net = get_net(nsproxy->net_ns); in get_net_ns_by_pid()
1357 net = get_net(nsproxy->net_ns); in netns_get()
1382 put_net(nsproxy->net_ns); in netns_install()
1383 nsproxy->net_ns = get_net(net); in netns_install()
/Linux-v6.6/fs/nfsd/
Dnfsctl.c1372 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super()
1421 return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); in nfsd_fs_get_tree()
1438 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in nfsd_init_fs_context()
1465 return exports_net_open(current->nsproxy->net_ns, file); in exports_proc_open()
/Linux-v6.6/net/netfilter/
Dnf_bpf_link.c209 struct net *net = current->nsproxy->net_ns; in bpf_nf_link_attach()
/Linux-v6.6/drivers/net/netdevsim/
Dbus.c285 nsim_bus_dev->initial_net = current->nsproxy->net_ns; in nsim_bus_dev_new()
/Linux-v6.6/net/bpf/
Dtest_run.c948 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_skb()
1099 device = dev_get_by_index(current->nsproxy->net_ns, in xdp_convert_md_to_buff()
1205 rxqueue = __netif_get_rx_queue(current->nsproxy->net_ns->loopback_dev, 0); in bpf_prog_test_run_xdp()
1571 struct net *net = current->nsproxy->net_ns; in bpf_prog_test_run_nf()
/Linux-v6.6/net/9p/
Dtrans_fd.c1004 err = __sock_create(current->nsproxy->net_ns, PF_INET, in p9_fd_create_tcp()
1055 err = __sock_create(current->nsproxy->net_ns, PF_UNIX, in p9_fd_create_unix()

123