Defined in 2 files as a function:
- include/linux/pid_namespace.h, line 62 (as a function)
- include/linux/pid_namespace.h, line 97 (as a function)
Referenced in 10 files:
- fs/fuse/inode.c, line 972
- fs/proc/root.c
- ipc/util.c, line 907
- kernel/bpf/task_iter.c, line 387
- kernel/cgroup/cgroup-v1.c, line 327
- kernel/events/core.c, line 13442
- kernel/nsproxy.c, line 438
- kernel/pid.c, line 192
- kernel/pid_namespace.c
- rust/helpers/pid_namespace.c
Smatch caller information:
ipc/util.c sysvipc_proc_open() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/proc/root.c proc_apply_options() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/proc/root.c proc_fill_super() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/proc/root.c proc_init_fs_context() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/proc/root.c proc_parse_pidns_param() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| NS_CAPABLE | 0 | 21 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
kernel/nsproxy.c validate_nsset() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 1-u64max |
| DATA_SOURCE | 0 | ns | r task_active_pid_ns |
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
kernel/pid_namespace.c copy_pid_ns() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | ns | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/pid_namespace.c create_pid_namespace() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->level | 0-31 |
| PARAM_VALUE | 0 | ns->user_ns | 4096-ptr_max |
| CAPPED_DATA | 0 | ns | 1 |
| CAPPED_DATA | 0 | ns->user_ns | 1 |
| DATA_SOURCE | 0 | ns | $1 |
| FUZZY_MAX | 0 | ns->level | 31 |
| HARD_MAX | 0 | ns->level | 31 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/pid_namespace.c pidns_for_children_get() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &task->alloc_lock | ||
| HALF_LOCKED2 | &task->signal->exec_update_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
kernel/pid_namespace.c pidns_get() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 1-u64max |
| DATA_SOURCE | 0 | ns | r task_active_pid_ns |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &task->signal->exec_update_lock |
kernel/pid_namespace.c pidns_get_parent() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | global &rtnl_mutex |
kernel/pid_namespace.c pidns_install() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | r to_pid_ns |
| NS_CAPABLE | 0 | 21 |
kernel/pid.c alloc_pid() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->pid_cachep | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->pid_cachep->object_size | 0-4294967295 |
| CAPPED_DATA | 0 | ns->pid_cachep | 1 |
| DATA_SOURCE | 0 | ns | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/cgroup/cgroup-v1.c cgroup_pidlist_find_create() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &cgrp->pidlist_mutex | ||
| LOCK2 | &of->mutex | ||
| LOCK2 | &s->lock | ||
| TYPE_LOCK | (struct cgroup)->pidlist_mutex | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/bpf/task_iter.c init_seq_pidns() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/fuse/inode.c fuse_conn_init() -> get_pid_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |