Home
last modified time | relevance | path

Searched refs:pidns (Results 1 – 9 of 9) sorted by relevance

/linux/kernel/
H A Dpid.c681 struct pid_namespace *pidns = in pid_table_root_permissions() local
685 if (ns_capable_noaudit(pidns->user_ns, CAP_SYS_ADMIN) || in pid_table_root_permissions()
686 uid_eq(current_euid(), make_kuid(pidns->user_ns, 0))) in pid_table_root_permissions()
688 else if (in_egroup_p(make_kgid(pidns->user_ns, 0))) in pid_table_root_permissions()
698 struct pid_namespace *pidns = in pid_table_root_set_ownership() local
703 ns_root_uid = make_kuid(pidns->user_ns, 0); in pid_table_root_set_ownership()
707 ns_root_gid = make_kgid(pidns->user_ns, 0); in pid_table_root_set_ownership()
762 int register_pidns_sysctls(struct pid_namespace *pidns) in register_pidns_sysctls() argument
767 setup_sysctl_set(&pidns->set, &pid_table_root, set_is_seen); in register_pidns_sysctls()
772 tbl->data = &pidns->pid_max; in register_pidns_sysctls()
[all …]
/linux/rust/kernel/
H A Dtask.rs265 pub fn tgid_nr_ns(&self, pidns: Option<&PidNamespace>) -> Pid { in tgid_nr_ns()
266 let pidns = match pidns { in tgid_nr_ns() localVariable
267 Some(pidns) => pidns.as_ptr(), in tgid_nr_ns()
274 unsafe { bindings::task_tgid_nr_ns(self.as_ptr(), pidns) } in tgid_nr_ns()
/linux/include/linux/
H A Dpid_namespace.h140 int register_pidns_sysctls(struct pid_namespace *pidns);
141 void unregister_pidns_sysctls(struct pid_namespace *pidns);
/linux/tools/testing/selftests/filesystems/nsfs/
H A D.gitignore3 pidns
H A DMakefile2 TEST_GEN_PROGS := owner pidns iterate_mntns
/linux/tools/testing/selftests/proc/
H A D.gitignore22 /proc-pidns
H A DMakefile32 TEST_GEN_PROGS += proc-pidns
/linux/kernel/bpf/
H A Dhelpers.c597 struct pid_namespace *pidns; in BPF_CALL_4() local
609 pidns = task_active_pid_ns(task); in BPF_CALL_4()
610 if (unlikely(!pidns)) { in BPF_CALL_4()
615 if (!ns_match(&pidns->ns, (dev_t)dev, ino)) in BPF_CALL_4()
618 nsdata->pid = task_pid_nr_ns(task, pidns); in BPF_CALL_4()
619 nsdata->tgid = task_tgid_nr_ns(task, pidns); in BPF_CALL_4()
/linux/Documentation/filesystems/
H A Dproc.rst2372 pidns= Specify a the namespace used by this procfs.
2405 pidns= specifies a pid namespace (either as a string path to something like