Home
last modified time | relevance | path

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

/kernel/
Dpid_namespace.c203 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument
211 disable_pid_allocation(pid_ns); in zap_pid_ns_processes()
236 nr = next_pidmap(pid_ns, 1); in zap_pid_ns_processes()
246 nr = next_pidmap(pid_ns, nr); in zap_pid_ns_processes()
278 if (pid_ns->nr_hashed == init_pids) in zap_pid_ns_processes()
284 if (pid_ns->reboot) in zap_pid_ns_processes()
285 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
287 acct_exit_ns(pid_ns); in zap_pid_ns_processes()
295 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local
298 if (write && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN)) in pid_ns_ctl_handler()
[all …]
Dpid.c55 static inline int mk_pid(struct pid_namespace *pid_ns, in mk_pid() argument
58 return (map - pid_ns->pidmap)*BITS_PER_PAGE + off; in mk_pid()
144 static void set_last_pid(struct pid_namespace *pid_ns, int base, int pid) in set_last_pid() argument
150 last_write = cmpxchg(&pid_ns->last_pid, prev, pid); in set_last_pid()
154 static int alloc_pidmap(struct pid_namespace *pid_ns) in alloc_pidmap() argument
156 int i, offset, max_scan, pid, last = pid_ns->last_pid; in alloc_pidmap()
163 map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; in alloc_pidmap()
191 set_last_pid(pid_ns, last, pid); in alloc_pidmap()
197 pid = mk_pid(pid_ns, map, offset); in alloc_pidmap()
202 if (map < &pid_ns->pidmap[(pid_max-1)/BITS_PER_PAGE]) { in alloc_pidmap()
[all …]
Dtsacct.c30 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
60 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns); in bacct_add_tsk()
66 task_tgid_nr_ns(rcu_dereference(tsk->real_parent), pid_ns) : 0; in bacct_add_tsk()
Dreboot.c283 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4() local
288 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
304 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
Dexit.c538 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper() local
539 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper()
546 pid_ns->child_reaper = reaper; in find_child_reaper()
551 if (unlikely(pid_ns == &init_pid_ns)) { in find_child_reaper()
555 zap_pid_ns_processes(pid_ns); in find_child_reaper()
Dtaskstats.c174 struct pid_namespace *pid_ns, in fill_stats() argument
191 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()