Home
last modified time | relevance | path

Searched refs:pid_ns (Results 1 – 19 of 19) sorted by relevance

/Linux-v6.6/kernel/
Dpid_namespace.c169 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument
178 disable_pid_allocation(pid_ns); in zap_pid_ns_processes()
205 idr_for_each_entry_continue(&pid_ns->idr, pid, nr) { in zap_pid_ns_processes()
248 if (pid_ns->pid_allocated == init_pids) in zap_pid_ns_processes()
271 if (pid_ns->reboot) in zap_pid_ns_processes()
272 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
274 acct_exit_ns(pid_ns); in zap_pid_ns_processes()
282 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local
286 if (write && !checkpoint_restore_ns_capable(pid_ns->user_ns)) in pid_ns_ctl_handler()
295 next = idr_get_cursor(&pid_ns->idr) - 1; in pid_ns_ctl_handler()
[all …]
Dtsacct.c21 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
58 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns); in bacct_add_tsk()
59 stats->ac_tgid = task_tgid_nr_ns(tsk, pid_ns); in bacct_add_tsk()
65 task_tgid_nr_ns(rcu_dereference(tsk->real_parent), pid_ns) : 0; in bacct_add_tsk()
Dnsproxy.c380 struct pid_namespace *pid_ns = NULL; in validate_nsset() local
409 pid_ns = task_active_pid_ns(tsk); in validate_nsset()
410 if (unlikely(!pid_ns)) { in validate_nsset()
415 get_pid_ns(pid_ns); in validate_nsset()
463 ret = validate_ns(nsset, &pid_ns->ns); in validate_nsset()
494 if (pid_ns) in validate_nsset()
495 put_pid_ns(pid_ns); in validate_nsset()
Dreboot.c703 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4() local
708 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
724 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
Dtaskstats.c175 struct pid_namespace *pid_ns, in fill_stats() argument
192 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
Dexit.c588 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper() local
589 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper()
597 pid_ns->child_reaper = reaper; in find_child_reaper()
608 zap_pid_ns_processes(pid_ns); in find_child_reaper()
/Linux-v6.6/fs/proc/
Droot.c30 struct pid_namespace *pid_ns; member
170 fs_info->pid_ns = get_pid_ns(ctx->pid_ns); in proc_fill_super()
233 put_pid_ns(ctx->pid_ns); in proc_fs_context_free()
252 ctx->pid_ns = get_pid_ns(task_active_pid_ns(current)); in proc_init_fs_context()
254 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); in proc_init_fs_context()
273 put_pid_ns(fs_info->pid_ns); in proc_kill_sb()
Dbase.c3449 ns = fs_info->pid_ns; in proc_pid_lookup()
3758 ns = fs_info->pid_ns; in proc_task_lookup()
/Linux-v6.6/include/linux/
Dpid_namespace.h77 extern void zap_pid_ns_processes(struct pid_namespace *pid_ns);
78 extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd);
111 static inline int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) in reboot_pid_ns() argument
Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
Dproc_fs.h62 struct pid_namespace *pid_ns; member
241 return proc_sb_info(sb)->pid_ns; in proc_pid_ns()
/Linux-v6.6/ipc/
Dutil.c775 struct pid_namespace *pid_ns; member
782 return iter->pid_ns; in ipc_seq_pid_ns()
910 iter->pid_ns = get_pid_ns(task_active_pid_ns(current)); in sysvipc_proc_open()
920 put_pid_ns(iter->pid_ns); in sysvipc_proc_release()
Dmsg.c1343 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_msg_proc_show() local
1355 pid_nr_ns(msq->q_lspid, pid_ns), in sysvipc_msg_proc_show()
1356 pid_nr_ns(msq->q_lrpid, pid_ns), in sysvipc_msg_proc_show()
Dshm.c1845 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_shm_proc_show() local
1868 pid_nr_ns(shp->shm_cprid, pid_ns), in sysvipc_shm_proc_show()
1869 pid_nr_ns(shp->shm_lprid, pid_ns), in sysvipc_shm_proc_show()
/Linux-v6.6/net/ipv6/
Dip6_flowlabel.c752 struct pid_namespace *pid_ns; member
813 state->pid_ns = proc_pid_ns(file_inode(seq->file)->i_sb); in ip6fl_seq_start()
849 pid_nr_ns(fl->owner.pid, state->pid_ns) : in ip6fl_seq_show()
/Linux-v6.6/fs/fuse/
Dfuse_i.h565 struct pid_namespace *pid_ns; member
Dinode.c873 fc->pid_ns = get_pid_ns(task_active_pid_ns(current)); in fuse_conn_init()
894 put_pid_ns(fc->pid_ns); in fuse_conn_put()
Ddev.c140 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_get_req()
471 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_force_creds()
Dfile.c2509 fl->fl_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns); in convert_fuse_file_lock()
2572 pid_t pid_nr = pid_nr_ns(pid, fm->fc->pid_ns); in fuse_setlk()