Searched refs:pid_ns (Results 1 – 8 of 8) sorted by relevance
/kernel/ |
D | pid_namespace.c | 177 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument 185 disable_pid_allocation(pid_ns); in zap_pid_ns_processes() 206 nr = next_pidmap(pid_ns, 1); in zap_pid_ns_processes() 216 nr = next_pidmap(pid_ns, nr); in zap_pid_ns_processes() 232 if (pid_ns->nr_hashed == init_pids) in zap_pid_ns_processes() 238 if (pid_ns->reboot) in zap_pid_ns_processes() 239 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes() 241 acct_exit_ns(pid_ns); in zap_pid_ns_processes() 249 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local 252 if (write && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN)) in pid_ns_ctl_handler() [all …]
|
D | pid.c | 55 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() 140 static void set_last_pid(struct pid_namespace *pid_ns, int base, int pid) in set_last_pid() argument 146 last_write = cmpxchg(&pid_ns->last_pid, prev, pid); in set_last_pid() 150 static int alloc_pidmap(struct pid_namespace *pid_ns) in alloc_pidmap() argument 152 int i, offset, max_scan, pid, last = pid_ns->last_pid; in alloc_pidmap() 159 map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; in alloc_pidmap() 187 set_last_pid(pid_ns, last, pid); in alloc_pidmap() 193 pid = mk_pid(pid_ns, map, offset); in alloc_pidmap() 198 if (map < &pid_ns->pidmap[(pid_max-1)/BITS_PER_PAGE]) { in alloc_pidmap() [all …]
|
D | nsproxy.c | 38 .pid_ns = &init_pid_ns, 88 new_nsp->pid_ns = copy_pid_ns(flags, user_ns, tsk->nsproxy->pid_ns); in create_new_namespaces() 89 if (IS_ERR(new_nsp->pid_ns)) { in create_new_namespaces() 90 err = PTR_ERR(new_nsp->pid_ns); in create_new_namespaces() 103 if (new_nsp->pid_ns) in create_new_namespaces() 104 put_pid_ns(new_nsp->pid_ns); in create_new_namespaces() 177 if (ns->pid_ns) in free_nsproxy() 178 put_pid_ns(ns->pid_ns); in free_nsproxy()
|
D | tsacct.c | 30 struct pid_namespace *pid_ns, in bacct_add_tsk() argument 61 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns); in bacct_add_tsk() 67 task_tgid_nr_ns(rcu_dereference(tsk->real_parent), pid_ns) : 0; in bacct_add_tsk()
|
D | exit.c | 517 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_new_reaper() local 524 if (unlikely(pid_ns->child_reaper == father)) in find_new_reaper() 525 pid_ns->child_reaper = thread; in find_new_reaper() 529 if (unlikely(pid_ns->child_reaper == father)) { in find_new_reaper() 531 if (unlikely(pid_ns == &init_pid_ns)) { in find_new_reaper() 537 zap_pid_ns_processes(pid_ns); in find_new_reaper() 552 if (same_thread_group(reaper, pid_ns->child_reaper)) in find_new_reaper() 564 return pid_ns->child_reaper; in find_new_reaper()
|
D | taskstats.c | 179 struct pid_namespace *pid_ns, in fill_stats() argument 196 bacct_add_tsk(user_ns, pid_ns, stats, tsk); in fill_stats()
|
D | sys.c | 476 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4() local 481 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4() 497 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
|
D | fork.c | 1241 (task_active_pid_ns(current) != current->nsproxy->pid_ns)) in copy_process() 1415 pid = alloc_pid(p->nsproxy->pid_ns); in copy_process()
|