Defined in 1 files as a function:
Referenced in 9 files:
- security/apparmor/af_unix.c
- security/apparmor/domain.c
- security/apparmor/include/cred.h, line 98
- security/apparmor/include/label.h, line 424
- security/apparmor/include/lib.h, line 330
- security/apparmor/include/task.h
- security/apparmor/label.c
- security/apparmor/lsm.c
- security/apparmor/task.c
Smatch caller information:
security/apparmor/file.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffff7ff |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
security/apparmor/net.c aa_get_newest_label() -> aa_get_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 | $0 |
| BIT_INFO | 0 | l->flags | 0x800,0x7ffffffffffff7ff |
security/apparmor/task.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0x7ffffffffffff7ff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
security/apparmor/task.c aa_replace_current_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->vec | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/apparmor/task.c aa_set_current_onexec() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 1-ptr_max |
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| DATA_SOURCE | 0 | l | $0 |
| NOCHECK_CALL |
security/apparmor/apparmorfs.c aa_get_newest_label() -> aa_get_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 | $0 |
| BIT_INFO | 0 | l->flags | 0x800,0x7ffffffffffff7ff |
security/apparmor/policy.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0x7ffffffffffff7ff |
security/apparmor/mount.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffff7ff |
security/apparmor/mount.c aa_pivotroot() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c aa_change_hat() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | r aa_get_newest_cred_label |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffffffd |
security/apparmor/domain.c aa_change_profile() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | r aa_get_current_label |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffffffd |
security/apparmor/domain.c aa_change_profile() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c aa_change_profile() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c aa_change_profile() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c aa_get_current_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | r aa_current_raw_label |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffff7ff |
security/apparmor/domain.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0x7ffffffffffff7ff |
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | rcu_read |
security/apparmor/domain.c apparmor_bprm_creds_for_exec() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | r aa_get_newest_label |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffffffd |
security/apparmor/domain.c apparmor_bprm_creds_for_exec() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/domain.c change_hat() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $1 |
security/apparmor/domain.c change_hat() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c handle_onexec() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/label.c __aa_proxy_redirect() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 1-u64max |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $1 |
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ns->labels.lock | ||
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | &ons->labels.lock |
security/apparmor/label.c __label_insert() -> aa_get_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->proxy->count.count.refcount.refs.counter | (-1073741824) |
| PARAM_VALUE | 0 | l->vec | 4096-ptr_max |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $1 |
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ls->lock | ||
| HALF_LOCKED2 | &ls->lock |
security/apparmor/label.c __label_insert() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->flags | 0-s64max |
| PARAM_VALUE | 0 | l->node.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | l->node.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | l->node.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | l->vec | 4096-ptr_max |
| CAPPED_DATA | 0 | l | 1 |
| CAPPED_DATA | 0 | &l->node | 1 |
| DATA_SOURCE | 0 | l | $1 |
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ls->lock | ||
| HALF_LOCKED2 | &ls->lock |
security/apparmor/label.c __label_update() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| LOCK2 | &ls->lock | ||
| LOCK2 | &ns->lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct aa_labelset)->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/label.c aa_alloc_proxy() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
security/apparmor/label.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0x7ffffffffffff7ff |
security/apparmor/label.c aa_label_strn_parse() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
security/apparmor/label.c label_merge_insert() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | &fctx->lock |
security/apparmor/label.c label_merge_insert() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->size | 0-s32max |
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| CAPPED_DATA | 0 | l->size | 1 |
| DATA_SOURCE | 0 | l | $1 |
| HALF_LOCKED2 | &fctx->lock |
security/apparmor/label.c label_merge_insert() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->size | 0-s32max |
| BUF_SIZE | 0 | l | (-1),104 |
| BUF_SIZE | 0 | l | (-1),104 |
| CAPPED_DATA | 0 | l->size | 1 |
| DATA_SOURCE | 0 | l | $2 |
| HALF_LOCKED2 | &fctx->lock |
security/apparmor/label.c vec_create_and_insert_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/af_inet.c aa_get_newest_label() -> aa_get_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 | $0 |
| BIT_INFO | 0 | l->flags | 0x800,0x7ffffffffffff7ff |
security/apparmor/procattr.c aa_get_newest_label() -> aa_get_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 | $0 |
| BIT_INFO | 0 | l->flags | 0x800,0x7ffffffffffff7ff |
security/apparmor/resource.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffff7ff |
| LOCK2 | rcu_read |
security/apparmor/lsm.c aa_dup_task_ctx() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c aa_dup_task_ctx() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c aa_dup_task_ctx() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c aa_get_current_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | r aa_current_raw_label |
| BIT_INFO | 0 | l->flags | 0x0,0xfffffffffffff7ff |
security/apparmor/lsm.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0x7ffffffffffff7ff |
| HALF_LOCKED2 | rcu_read |
security/apparmor/lsm.c apparmor_file_alloc_security() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | l | r begin_current_label_crit_section |
security/apparmor/lsm.c apparmor_sk_alloc_security() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | l | r __begin_current_label_crit_section |
security/apparmor/lsm.c apparmor_socket_post_create() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c apparmor_socket_post_create() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c apparmor_socket_socketpair() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | l | r begin_current_label_crit_section |
security/apparmor/lsm.c apparmor_socket_socketpair() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | l | r begin_current_label_crit_section |
security/apparmor/lsm.c apparmor_unix_stream_connect() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c set_init_ctx() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| HALF_LOCKED2 | irq |
security/apparmor/lsm.c unix_connect_peers() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
security/apparmor/lsm.c unix_connect_peers() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/lsm.c unix_connect_peers() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|
security/apparmor/af_unix.c aa_get_newest_label() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| DATA_SOURCE | 0 | l | $0 |
| BIT_INFO | 0 | l->flags | 0x0,0x7ffffffffffff7ff |
| HALF_LOCKED2 | rcu_read |
security/apparmor/af_unix.c update_sk_ctx() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| CAPPED_DATA | 0 | l | 1 |
| DATA_SOURCE | 0 | l | $2 |
| PREEMPT_ADD | <- disables preempt |
security/apparmor/af_unix.c update_sk_ctx() -> aa_get_label()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | l | 4096-ptr_max |
| PARAM_VALUE | 0 | l->size | 1-s32max |
| CAPPED_DATA | 0 | l | 1 |
| CAPPED_DATA | 0 | l->size | 1 |
| DATA_SOURCE | 0 | l | $2 |
| PREEMPT_ADD | <- disables preempt |
security/apparmor/af_unix.c update_sk_ctx() -> aa_get_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->size | 1-s32max |
| CAPPED_DATA | 0 | l | 1 |
| CAPPED_DATA | 0 | l->size | 1 |
| DATA_SOURCE | 0 | l | $2 |
| PREEMPT_ADD | <- disables preempt |