/Linux-v5.4/kernel/ |
D | pid_namespace.c | 181 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument 190 disable_pid_allocation(pid_ns); in zap_pid_ns_processes() 217 idr_for_each_entry_continue(&pid_ns->idr, pid, nr) { in zap_pid_ns_processes() 253 if (pid_ns->pid_allocated == init_pids) in zap_pid_ns_processes() 259 if (pid_ns->reboot) in zap_pid_ns_processes() 260 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes() 262 acct_exit_ns(pid_ns); in zap_pid_ns_processes() 270 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local 274 if (write && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN)) in pid_ns_ctl_handler() 283 next = idr_get_cursor(&pid_ns->idr) - 1; in pid_ns_ctl_handler() [all …]
|
D | tsacct.c | 21 struct pid_namespace *pid_ns, in bacct_add_tsk() argument 51 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns); in bacct_add_tsk() 57 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 | exit.c | 506 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper() local 507 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper() 515 pid_ns->child_reaper = reaper; in find_child_reaper() 520 if (unlikely(pid_ns == &init_pid_ns)) { in find_child_reaper() 530 zap_pid_ns_processes(pid_ns); in find_child_reaper()
|
D | taskstats.c | 160 struct pid_namespace *pid_ns, in fill_stats() argument 177 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
|
/Linux-v5.4/fs/proc/ |
D | root.c | 33 struct pid_namespace *pid_ns; member 87 struct pid_namespace *pid_ns, in proc_apply_options() argument 93 pid_ns->pid_gid = make_kgid(user_ns, ctx->gid); in proc_apply_options() 95 pid_ns->hide_pid = ctx->hidepid; in proc_apply_options() 100 struct pid_namespace *pid_ns = get_pid_ns(s->s_fs_info); in proc_fill_super() local 104 proc_apply_options(s, fc, pid_ns, current_user_ns()); in proc_fill_super() 160 return get_tree_keyed(fc, proc_fill_super, ctx->pid_ns); in proc_get_tree() 167 put_pid_ns(ctx->pid_ns); in proc_fs_context_free() 186 ctx->pid_ns = get_pid_ns(task_active_pid_ns(current)); in proc_init_fs_context() 188 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); in proc_init_fs_context() [all …]
|
/Linux-v5.4/include/linux/ |
D | pid_namespace.h | 64 extern void zap_pid_ns_processes(struct pid_namespace *pid_ns); 65 extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd); 93 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
|
/Linux-v5.4/ipc/ |
D | util.c | 741 struct pid_namespace *pid_ns; member 748 return iter->pid_ns; in ipc_seq_pid_ns() 873 iter->pid_ns = get_pid_ns(task_active_pid_ns(current)); in sysvipc_proc_open() 883 put_pid_ns(iter->pid_ns); in sysvipc_proc_release()
|
D | msg.c | 1289 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_msg_proc_show() local 1301 pid_nr_ns(msq->q_lspid, pid_ns), in sysvipc_msg_proc_show() 1302 pid_nr_ns(msq->q_lrpid, pid_ns), in sysvipc_msg_proc_show()
|
D | shm.c | 1741 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_shm_proc_show() local 1764 pid_nr_ns(shp->shm_cprid, pid_ns), in sysvipc_shm_proc_show() 1765 pid_nr_ns(shp->shm_lprid, pid_ns), in sysvipc_shm_proc_show()
|
/Linux-v5.4/net/ipv6/ |
D | ip6_flowlabel.c | 721 struct pid_namespace *pid_ns; member 782 state->pid_ns = proc_pid_ns(file_inode(seq->file)); in ip6fl_seq_start() 818 pid_nr_ns(fl->owner.pid, state->pid_ns) : in ip6fl_seq_show()
|
/Linux-v5.4/drivers/staging/gasket/ |
D | gasket_core.c | 1172 struct pid_namespace *pid_ns = task_active_pid_ns(current); in gasket_open() local 1173 bool is_root = ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN); in gasket_open() 1251 struct pid_namespace *pid_ns = task_active_pid_ns(current); in gasket_release() local 1252 bool is_root = ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN); in gasket_release()
|
/Linux-v5.4/fs/fuse/ |
D | fuse_i.h | 517 struct pid_namespace *pid_ns; member
|
D | inode.c | 627 fc->pid_ns = get_pid_ns(task_active_pid_ns(current)); in fuse_conn_init() 640 put_pid_ns(fc->pid_ns); in fuse_conn_put()
|
D | dev.c | 138 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_get_req() 466 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_force_creds()
|
D | file.c | 2322 fl->fl_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns); in convert_fuse_file_lock() 2385 pid_t pid_nr = pid_nr_ns(pid, fc->pid_ns); in fuse_setlk()
|