/kernel/linux/linux-5.10/kernel/ |
D | pid_namespace.c | 173 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument 182 disable_pid_allocation(pid_ns); in zap_pid_ns_processes() 209 idr_for_each_entry_continue(&pid_ns->idr, pid, nr) { in zap_pid_ns_processes() 252 if (pid_ns->pid_allocated == init_pids) in zap_pid_ns_processes() 258 if (pid_ns->reboot) in zap_pid_ns_processes() 259 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes() 261 acct_exit_ns(pid_ns); in zap_pid_ns_processes() 269 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local 273 if (write && !checkpoint_restore_ns_capable(pid_ns->user_ns)) in pid_ns_ctl_handler() 282 next = idr_get_cursor(&pid_ns->idr) - 1; in pid_ns_ctl_handler() [all …]
|
D | nsproxy.c | 366 struct pid_namespace *pid_ns = NULL; in validate_nsset() local 395 pid_ns = task_active_pid_ns(tsk); in validate_nsset() 396 if (unlikely(!pid_ns)) { in validate_nsset() 401 get_pid_ns(pid_ns); in validate_nsset() 449 ret = validate_ns(nsset, &pid_ns->ns); in validate_nsset() 480 if (pid_ns) in validate_nsset() 481 put_pid_ns(pid_ns); in validate_nsset()
|
D | tsacct.c | 21 struct pid_namespace *pid_ns, in bacct_add_tsk() argument 53 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns); in bacct_add_tsk() 59 task_tgid_nr_ns(rcu_dereference(tsk->real_parent), pid_ns) : 0; in bacct_add_tsk()
|
D | reboot.c | 313 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4() local 318 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4() 334 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
|
D | taskstats.c | 156 struct pid_namespace *pid_ns, in fill_stats() argument 173 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
|
D | exit.c | 513 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper() local 514 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper() 522 pid_ns->child_reaper = reaper; in find_child_reaper() 533 zap_pid_ns_processes(pid_ns); in find_child_reaper()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | root.c | 33 struct pid_namespace *pid_ns; member 173 fs_info->pid_ns = get_pid_ns(ctx->pid_ns); in proc_fill_super() 236 put_pid_ns(ctx->pid_ns); in proc_fs_context_free() 255 ctx->pid_ns = get_pid_ns(task_active_pid_ns(current)); in proc_init_fs_context() 257 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); in proc_init_fs_context() 276 put_pid_ns(fs_info->pid_ns); in proc_kill_sb()
|
D | base.c | 3591 ns = fs_info->pid_ns; in proc_pid_lookup() 3902 ns = fs_info->pid_ns; in proc_task_lookup()
|
/kernel/linux/linux-5.10/include/linux/ |
D | pid_namespace.h | 52 extern void zap_pid_ns_processes(struct pid_namespace *pid_ns); 53 extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd); 81 static inline int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) in reboot_pid_ns() argument
|
D | tsacct_kern.h | 15 struct pid_namespace *pid_ns, 19 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
|
D | proc_fs.h | 61 struct pid_namespace *pid_ns; member 220 return proc_sb_info(sb)->pid_ns; in proc_pid_ns()
|
/kernel/linux/linux-5.10/ipc/ |
D | util.c | 741 struct pid_namespace *pid_ns; member 748 return iter->pid_ns; in ipc_seq_pid_ns() 865 iter->pid_ns = get_pid_ns(task_active_pid_ns(current)); in sysvipc_proc_open() 875 put_pid_ns(iter->pid_ns); in sysvipc_proc_release()
|
D | msg.c | 1323 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_msg_proc_show() local 1335 pid_nr_ns(msq->q_lspid, pid_ns), in sysvipc_msg_proc_show() 1336 pid_nr_ns(msq->q_lrpid, pid_ns), in sysvipc_msg_proc_show()
|
D | shm.c | 1836 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_shm_proc_show() local 1859 pid_nr_ns(shp->shm_cprid, pid_ns), in sysvipc_shm_proc_show() 1860 pid_nr_ns(shp->shm_lprid, pid_ns), in sysvipc_shm_proc_show()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ip6_flowlabel.c | 749 struct pid_namespace *pid_ns; member 810 state->pid_ns = proc_pid_ns(file_inode(seq->file)->i_sb); in ip6fl_seq_start() 846 pid_nr_ns(fl->owner.pid, state->pid_ns) : in ip6fl_seq_show()
|
/kernel/linux/linux-5.10/drivers/staging/gasket/ |
D | gasket_core.c | 1174 struct pid_namespace *pid_ns = task_active_pid_ns(current); in gasket_open() local 1175 bool is_root = ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN); in gasket_open() 1252 struct pid_namespace *pid_ns = task_active_pid_ns(current); in gasket_release() local 1253 bool is_root = ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN); in gasket_release()
|
/kernel/linux/linux-5.10/fs/fuse/ |
D | fuse_i.h | 545 struct pid_namespace *pid_ns; member
|
D | inode.c | 710 fc->pid_ns = get_pid_ns(task_active_pid_ns(current)); in fuse_conn_init() 730 put_pid_ns(fc->pid_ns); in fuse_conn_put()
|
D | dev.c | 140 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_get_req() 475 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_force_creds()
|
D | file.c | 2430 fl->fl_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns); in convert_fuse_file_lock() 2493 pid_t pid_nr = pid_nr_ns(pid, fm->fc->pid_ns); in fuse_setlk()
|