Home
last modified time | relevance | path

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

/linux-4.1.27/kernel/
Dpid_namespace.c184 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument
192 disable_pid_allocation(pid_ns); in zap_pid_ns_processes()
217 nr = next_pidmap(pid_ns, 1); in zap_pid_ns_processes()
227 nr = next_pidmap(pid_ns, nr); in zap_pid_ns_processes()
259 if (pid_ns->nr_hashed == init_pids) in zap_pid_ns_processes()
265 if (pid_ns->reboot) in zap_pid_ns_processes()
266 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
268 acct_exit_ns(pid_ns); in zap_pid_ns_processes()
276 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local
279 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.c457 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper() local
458 struct task_struct *reaper = pid_ns->child_reaper; in find_child_reaper()
465 pid_ns->child_reaper = reaper; in find_child_reaper()
470 if (unlikely(pid_ns == &init_pid_ns)) { in find_child_reaper()
474 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-4.1.27/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.h14 struct pid_namespace *pid_ns,
18 struct pid_namespace *pid_ns, in bacct_add_tsk() argument
Dpid.h118 int next_pidmap(struct pid_namespace *pid_ns, unsigned int last);
/linux-4.1.27/net/ipv6/
Dip6_flowlabel.c692 struct pid_namespace *pid_ns; member
785 pid_nr_ns(fl->owner.pid, state->pid_ns) : in ip6fl_seq_show()
818 state->pid_ns = get_pid_ns(task_active_pid_ns(current)); in ip6fl_seq_open()
828 put_pid_ns(state->pid_ns); in ip6fl_seq_release()