Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/
Dpid_namespace.c173 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 …]
Dnsproxy.c366 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()
Dtsacct.c21 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()
Dreboot.c313 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()
Dtaskstats.c156 struct pid_namespace *pid_ns, in fill_stats() argument
173 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
Dexit.c513 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/
Droot.c33 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()
Dbase.c3591 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/
Dpid_namespace.h52 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
Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
Dproc_fs.h61 struct pid_namespace *pid_ns; member
220 return proc_sb_info(sb)->pid_ns; in proc_pid_ns()
/kernel/linux/linux-5.10/ipc/
Dutil.c741 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()
Dmsg.c1323 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()
Dshm.c1836 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/
Dip6_flowlabel.c749 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/
Dgasket_core.c1174 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/
Dfuse_i.h545 struct pid_namespace *pid_ns; member
Dinode.c710 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()
Ddev.c140 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()
Dfile.c2430 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()