Defined in 1 files as a function:
Referenced in 5 files:
- fs/namei.c, line 1126
- fs/namespace.c
- fs/proc/base.c, line 215
- fs/proc_namespace.c, line 263
- security/apparmor/path.c, line 121
Smatch caller information:
security/apparmor/path.c d_namespace_path() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | root | 2368637166386339840 |
| NOCHECK_CALL |
fs/proc/base.c get_task_root() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs | 1-u64max |
| PARAM_VALUE | 1 | root | 4476707435091537920,4935506243646550016 |
| DATA_SOURCE | 1 | root | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &task->alloc_lock | ||
| LOCK2 | &task->signal->exec_update_lock | ||
| TYPE_LOCK | (struct signal_struct)->exec_update_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
fs/namei.c set_root() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | root->mnt | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/namespace.c current_chrooted() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | root | 5151062070282903552 |
| PARAM_VALUE | 1 | root->dentry | 0 |
| PARAM_VALUE | 1 | root->mnt | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/namespace.c grab_requested_root() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | root->dentry | 0 |
| PARAM_VALUE | 1 | root->mnt | 0 |
| DATA_SOURCE | 1 | root | $1 |
| NOCHECK_CALL | |||
| LOCK2 | global &namespace_sem |
fs/namespace.c path_pivot_root() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | root | 3328856821100011520 |
| PARAM_VALUE | 1 | root->dentry | 0 |
| PARAM_VALUE | 1 | root->mnt | 0 |
| NOCHECK_CALL |
fs/proc_namespace.c mounts_open_common() -> get_fs_root()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fs | 1-u64max |
| PARAM_VALUE | 1 | root | 4829161773307678720 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &task->alloc_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |