Documented in 1 files:
Defined in 1 files as a function:
Referenced in 5 files:
- security/apparmor/domain.c
- security/apparmor/include/lib.h, line 321
- security/apparmor/include/policy_ns.h, line 115
- security/apparmor/label.c
- security/apparmor/policy.c
Smatch caller information:
security/apparmor/apparmorfs.c aa_get_ns() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | &parent->lock |
security/apparmor/policy.c __add_profile() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.list.prev | 4096-ptr_max |
| BUF_SIZE | 0 | p | (-1),360 |
| BUF_SIZE | 0 | p | (-1),360 |
| DATA_SOURCE | 0 | p | $1 |
| NOCHECK_CALL | |||
| USER_DATA | 0 | *p->rawdata->data | 0-255 |
| USER_PTR | 0 | p->rawdata->data | |
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | 0 | &p->ns->lock | |
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c __lookup_replace() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 0,4096-ptr_max |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c __replace_profile() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| CAPPED_DATA | 0 | &p->base.profiles | 1 |
| DATA_SOURCE | 0 | p | $1 |
| USER_DATA | 0 | *p->rawdata->data | 0-255 |
| USER_PTR | 0 | p->rawdata->data | |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c __replace_profile() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c __replace_profile() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.flags | 0-s64max |
| PARAM_VALUE | 0 | p->label.node.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | p->label.node.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.node.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.proxy->count.count.reftype | 0 |
| PARAM_VALUE | 0 | p->label.proxy->count.label | 97 |
| CAPPED_DATA | 0 | p->label.hname | 1 |
| CAPPED_DATA | 0 | &p->base.list | 1 |
| CAPPED_DATA | 0 | &p->label | 1 |
| DATA_SOURCE | 0 | p | $1 |
| NOCHECK_CALL | |||
| USER_DATA | 0 | *p->rawdata->data | 0-255 |
| USER_PTR | 0 | p->rawdata->data | |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c aa_alloc_null() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| BUF_SIZE | 0 | p | (-1)-0,360 |
| BUF_SIZE | 0 | p | (-1)-0,360 |
| DATA_SOURCE | 0 | p | $0 |
| STR_LEN | 0 | p | (-1) |
| STR_LEN | 0 | p | (-1) |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c aa_get_ns() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c aa_new_learning_profile() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| DATA_SOURCE | 0 | p | r __find_child |
| LOCK2 | &profile->ns->lock | ||
| HALF_LOCKED2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c aa_remove_profiles() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 0,4096-ptr_max |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c aa_replace_profiles() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | p | (-1)-0,48 |
| BUF_SIZE | 0 | p | (-1)-0,48 |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/mount.c aa_pivotroot() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
security/apparmor/domain.c aa_change_profile() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
security/apparmor/domain.c apparmor_bprm_creds_for_exec() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
security/apparmor/domain.c build_change_hat() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| CAPPED_DATA | 0 | p->ns | 1 |
| DATA_SOURCE | 0 | p | $1 |
| BIT_INFO | 0 | p->label.flags | 0x0,0xfffffffffffffffe |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| BIT_INFO | 0 | p->label.flags | 0x0,0x7ffffffffffffffe |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c handle_onexec() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
security/apparmor/label.c aa_get_ns() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
security/apparmor/label.c aa_label_strn_parse() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|
security/apparmor/label.c label_merge_insert() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
| DATA_SOURCE | 0 | p | r aa_label_next_in_merge |
| HALF_LOCKED2 | &fctx->lock |
security/apparmor/label.c vec_create_and_insert_label() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy_ns.c aa_get_ns() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | &parent->lock | ||
| HALF_LOCKED2 | rcu_read |
security/apparmor/procattr.c aa_get_ns() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
security/apparmor/policy_unpack.c aa_get_ns() -> aa_get_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |