Documented in 1 files:
Defined in 1 files as a function:
Referenced in 9 files:
- security/apparmor/af_unix.c, line 781
- security/apparmor/domain.c
- security/apparmor/file.c, line 664
- security/apparmor/include/cred.h
- security/apparmor/include/policy.h, line 325
- security/apparmor/label.c, line 1258
- security/apparmor/lsm.c
- security/apparmor/mount.c
- security/apparmor/task.c
Smatch caller information:
security/apparmor/file.c aa_file_perm() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| CAPPED_DATA | 0 | l | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &files->file_lock | ||
| HALF_LOCKED2 | &tty->files_lock |
security/apparmor/file.c aa_get_newest_cred_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/net.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/task.c aa_get_newest_cred_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
security/apparmor/task.c aa_replace_current_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/apparmor/task.c aa_replace_stale_label_tw_func() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r aa_current_raw_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu |
security/apparmor/task.c aa_restore_previous_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 1-u64max |
security/apparmor/task.c aa_set_current_hat() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 0-ptr_max |
| BUF_SIZE | 0 | l | (-1)-0,104 |
| BUF_SIZE | 0 | l | (-1)-0,104 |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $0 |
security/apparmor/apparmorfs.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/policy.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/policy.c aa_get_newest_profile() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c aa_get_newest_profile() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/mount.c build_pivotroot() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/mount.c build_pivotroot() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c aa_change_hat() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/domain.c aa_get_current_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r aa_current_raw_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/domain.c aa_get_newest_cred_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/domain.c aa_get_newest_profile() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| LOCK2 | rcu_read |
security/apparmor/domain.c aa_get_newest_profile() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| LOCK2 | rcu_read |
security/apparmor/domain.c apparmor_bprm_creds_for_exec() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/domain.c change_hat() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->count.count.refcount.refs.counter | (-1073741824) |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| PARAM_VALUE | 0 | l->vec | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $1 [m] |
| BIT_INFO | 0 | l->flags | 0x800,0x7fffffffffffffff |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c priv_restricted_transition() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 1-u64max |
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $5 |
security/apparmor/domain.c profile_transition() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c profile_transition() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c x_to_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c x_to_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/label.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/label.c aa_get_newest_profile() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | &ls->lock | ||
| HALF_LOCKED2 | flags |
security/apparmor/label.c aa_get_newest_profile() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | &ls->lock | ||
| HALF_LOCKED2 | flags |
security/apparmor/label.c aa_label_merge() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $0 |
| HALF_LOCKED2 | &fctx->lock |
security/apparmor/af_inet.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/procattr.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/resource.c aa_get_newest_cred_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
security/apparmor/lsm.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/lsm.c aa_get_current_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r aa_current_raw_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/lsm.c aa_get_newest_cred_label() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | rcu_read |
security/apparmor/lsm.c aa_get_newest_cred_label_condref() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/lsm.c apparmor_cred_prepare() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c apparmor_cred_transfer() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c apparmor_getprocattr() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
security/apparmor/lsm.c apparmor_getprocattr() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |
security/apparmor/lsm.c apparmor_getselfattr() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c apparmor_getselfattr() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 1-u64max |
security/apparmor/lsm.c apparmor_getselfattr() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 1-u64max |
security/apparmor/af_unix.c __begin_cred_crit_section() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | s64min-(-1),2048-s64max |
| DATA_SOURCE | 0 | l | r cred_label |
| BIT_INFO | 0 | l->flags | 0x800,0xffffffffffffffff |
security/apparmor/af_unix.c aa_unix_file_perm() -> aa_get_newest_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | rcu_read |