Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/
Dpid_namespace.c180 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument
189 disable_pid_allocation(pid_ns); in zap_pid_ns_processes()
216 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 && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN)) in pid_ns_ctl_handler()
282 next = idr_get_cursor(&pid_ns->idr) - 1; in pid_ns_ctl_handler()
[all …]
Dtsacct.c32 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
62 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns); in bacct_add_tsk()
68 task_tgid_nr_ns(rcu_dereference(tsk->real_parent), pid_ns) : 0; in bacct_add_tsk()
Dreboot.c310 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4() local
315 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
331 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
Dexit.c565 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper() local
566 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper()
573 pid_ns->child_reaper = reaper; in find_child_reaper()
578 if (unlikely(pid_ns == &init_pid_ns)) { in find_child_reaper()
582 zap_pid_ns_processes(pid_ns); in find_child_reaper()
Dtaskstats.c170 struct pid_namespace *pid_ns, in fill_stats() argument
187 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
/Linux-v4.19/include/linux/
Dpid_namespace.h64 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
Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
Dpid.h112 int next_pidmap(struct pid_namespace *pid_ns, unsigned int last);
/Linux-v4.19/ipc/
Dutil.c712 struct pid_namespace *pid_ns; member
719 return iter->pid_ns; in ipc_seq_pid_ns()
844 iter->pid_ns = get_pid_ns(task_active_pid_ns(current)); in sysvipc_proc_open()
854 put_pid_ns(iter->pid_ns); in sysvipc_proc_release()
Dmsg.c1264 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_msg_proc_show() local
1276 pid_nr_ns(msq->q_lspid, pid_ns), in sysvipc_msg_proc_show()
1277 pid_nr_ns(msq->q_lrpid, pid_ns), in sysvipc_msg_proc_show()
Dshm.c1715 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); in sysvipc_shm_proc_show() local
1738 pid_nr_ns(shp->shm_cprid, pid_ns), in sysvipc_shm_proc_show()
1739 pid_nr_ns(shp->shm_lprid, pid_ns), in sysvipc_shm_proc_show()
/Linux-v4.19/net/ipv6/
Dip6_flowlabel.c697 struct pid_namespace *pid_ns; member
758 state->pid_ns = proc_pid_ns(file_inode(seq->file)); in ip6fl_seq_start()
794 pid_nr_ns(fl->owner.pid, state->pid_ns) : in ip6fl_seq_show()
/Linux-v4.19/drivers/staging/gasket/
Dgasket_core.c1180 struct pid_namespace *pid_ns = task_active_pid_ns(current); in gasket_open() local
1181 bool is_root = ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN); in gasket_open()
1259 struct pid_namespace *pid_ns = task_active_pid_ns(current); in gasket_release() local
1260 bool is_root = ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN); in gasket_release()
/Linux-v4.19/fs/fuse/
Dfuse_i.h468 struct pid_namespace *pid_ns; member
Dinode.c627 fc->pid_ns = get_pid_ns(task_active_pid_ns(current)); in fuse_conn_init()
637 put_pid_ns(fc->pid_ns); in fuse_conn_put()
Ddev.c174 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in __fuse_get_req()
275 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); in fuse_get_req_nofail_nopages()
Dfile.c2119 fl->fl_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns); in convert_fuse_file_lock()
2182 pid_t pid_nr = pid_nr_ns(pid, fc->pid_ns); in fuse_setlk()