Documented in 1 files:
Defined in 1 files as a function:
Referenced in 5 files:
- security/apparmor/domain.c
- security/apparmor/include/policy_ns.h, line 129
- security/apparmor/label.c
- security/apparmor/policy.c
- security/apparmor/policy_unpack.c
Smatch caller information:
security/apparmor/apparmorfs.c aa_put_ns() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &f->lock | ||
| HALF_LOCKED2 | &parent->lock |
security/apparmor/policy.c __list_remove_profile() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.profiles.next | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.flags | s64min-0,2048-s64max |
| CAPPED_DATA | 0 | p | 1 |
| DATA_SOURCE | 0 | p | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c __replace_profile() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c __replace_profile() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->base.profiles.next | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.flags | s64min-0,2048-s64max |
| PARAM_VALUE | 0 | p->label.proxy->label | 1-u64max |
| PARAM_VALUE | 0 | *p->dents | 0 |
| CAPPED_DATA | 0 | p->label.hname | 1 |
| CAPPED_DATA | 0 | &p->base.profiles | 1 |
| DATA_SOURCE | 0 | p | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c aa_free_profile() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &profile->ns->lock |
security/apparmor/policy.c aa_put_ns() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
security/apparmor/policy.c aa_remove_profiles() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 0,4096-ptr_max |
| PARAM_VALUE | 0 | p->base.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.count.rcu.next | 0 |
| PARAM_VALUE | 0 | p->label.flags | s64min-0,2048-s64max |
| PARAM_VALUE | 0 | p->rawdata | 0 |
| PARAM_VALUE | 0 | *p->dents | 0 |
| CAPPED_DATA | 0 | p | 1 |
| NOCHECK_CALL |
security/apparmor/policy.c update_to_newest_parent() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.count.count.refcount.refs.counter | (-1073741824) |
| PARAM_VALUE | 0 | p->label.proxy->label->count.count.refcount.refs.counter | (-1073741824) |
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c update_to_newest_parent() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| CAPPED_DATA | 0 | p | 1 |
| DATA_SOURCE | 0 | p | r aa_get_newest_profile |
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/mount.c aa_pivotroot() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-ptr_max |
| NOCHECK_CALL |
security/apparmor/domain.c aa_change_profile() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-ptr_max |
| NOCHECK_CALL |
security/apparmor/domain.c apparmor_bprm_creds_for_exec() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-ptr_max |
| NOCHECK_CALL |
security/apparmor/domain.c build_change_hat() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.count.count.refcount.refs.counter | (-1073741824) |
| DATA_SOURCE | 0 | p | r aa_find_child |
| BIT_INFO | 0 | p->label.flags | 0x0,0x7ffffffffffffffe |
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 0,4096-ptr_max |
| PARAM_VALUE | 0 | p->label.count.count.refcount.refs.counter | (-1073741824) |
| PARAM_VALUE | 0 | p->label.flags | s64min-(-1),1-s64max |
| DATA_SOURCE | 0 | p | r aa_find_child |
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c change_hat() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | &ns->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/domain.c find_attach() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->attach.xattr_count | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | p->attach.xmatch | 4096-ptr_max |
| PARAM_VALUE | 0 | p->attach.xmatch->dfa | 4096-ptr_max |
| PARAM_VALUE | 0 | p->attach.xmatch->perms | 0,4096-ptr_max |
| PARAM_VALUE | 0 | p->attach.xmatch->start | 4096-ptr_max |
| PARAM_VALUE | 0 | p->label.count.count.refcount.refs.counter | (-1073741824) |
| CAPPED_DATA | 0 | p->attach.xattr_count | 1 |
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
security/apparmor/domain.c handle_onexec() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-ptr_max |
| NOCHECK_CALL |
security/apparmor/label.c aa_label_destroy() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-u64max |
| NOCHECK_CALL |
security/apparmor/label.c aa_label_strn_parse() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 1-ptr_max |
| NOCHECK_CALL |
security/apparmor/label.c aa_put_ns() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
security/apparmor/label.c aa_vec_unique() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ls->lock | ||
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | flags |
security/apparmor/label.c unique() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ls->lock | ||
| HALF_LOCKED2 | &ns->lock | ||
| HALF_LOCKED2 | flags |
security/apparmor/policy_ns.c aa_put_ns() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/apparmor/procattr.c aa_put_ns() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
security/apparmor/policy_unpack.c aa_load_ent_free() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy_unpack.c aa_load_ent_free() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy_unpack.c aa_load_ent_free() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| USER_DATA | 0 | *p->rawdata->data | 0-255 |
| USER_PTR | 0 | p->rawdata->data | |
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy_unpack.c aa_put_ns() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
security/apparmor/policy_unpack.c aa_unpack() -> aa_put_profile()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| BUF_SIZE | 0 | p | (-1),360 |
| BUF_SIZE | 0 | p | (-1),360 |
| DATA_SOURCE | 0 | p | r unpack_profile |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | p->attach.xmatch->size | |
| NO_OVERFLOW_SIMPLE | 0 | p->attach.xmatch->trans.size | |
| NO_OVERFLOW_SIMPLE | 0 | p->data->tbl->size |