Defined in 1 files as a function:
Referenced in 6 files:
- security/landlock/cred.c
- security/landlock/cred.h
- security/landlock/fs.c
- security/landlock/syscalls.c, line 586
- security/landlock/task.c
- security/landlock/tsync.c
Smatch caller information:
security/landlock/fs.c hook_file_ioctl_common() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/fs.c hook_file_truncate() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/fs.c hook_unix_find() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt |
security/landlock/fs.c landlock_get_applicable_subject() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 1-u64max |
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/fs.c landlock_get_applicable_subject() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/task.c hook_ptrace_access_check() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/task.c hook_ptrace_traceme() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
security/landlock/task.c landlock_get_applicable_subject() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 1-u64max |
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/task.c landlock_get_applicable_subject() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/task.c landlock_get_current_domain() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/task.c landlock_get_task_domain() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/task.c sock_is_scoped() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/syscalls.c __do_sys_landlock_restrict_self() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 0 | cred->security | 0,4096-ptr_max |
| DATA_SOURCE | 0 | cred | r prepare_creds |
security/landlock/syscalls.c __do_sys_landlock_restrict_self() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 0 | cred->security | 0,4096-ptr_max |
| DATA_SOURCE | 0 | cred | r prepare_creds |
security/landlock/tsync.c restrict_one_thread() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu |
security/landlock/tsync.c restrict_one_thread() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 0 | cred->security | 0,4096-ptr_max |
| DATA_SOURCE | 0 | cred | r prepare_creds |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu |
security/landlock/tsync.c restrict_one_thread() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu |
security/landlock/tsync.c restrict_one_thread() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu |
security/landlock/net.c landlock_get_applicable_subject() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 1-u64max |
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/net.c landlock_get_applicable_subject() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/cred.c hook_bprm_creds_for_exec() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|
security/landlock/cred.c hook_cred_free() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | cred | $0 |
security/landlock/cred.c hook_cred_transfer() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | cred | $1 |
security/landlock/cred.c hook_cred_transfer() -> landlock_cred()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | cred | $0 |