Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

security/apparmor/task.c aa_replace_current_label() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 0 cred 4096-ptr_max
PARAM_VALUE 0 cred->group_info 4096-ptr_max
PARAM_VALUE 0 cred->non_rcu 0
PARAM_VALUE 0 cred->process_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 0 cred->security 0,4096-ptr_max
PARAM_VALUE 0 cred->session_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->thread_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->ucounts 4096-ptr_max
PARAM_VALUE 0 cred->usage.counter 1
PARAM_VALUE 0 cred->user 4096-ptr_max
PARAM_VALUE 1 label 4096-ptr_max
PARAM_VALUE 1 label->count.count.refcount.refs.counter (-1073741824)
PARAM_VALUE 1 label->vec 4096-ptr_max
DATA_SOURCE 0 cred r prepare_creds
DATA_SOURCE 1 label $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

security/apparmor/task.c aa_restore_previous_label() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 0 cred 4096-ptr_max
PARAM_VALUE 0 cred->group_info 4096-ptr_max
PARAM_VALUE 0 cred->non_rcu 0
PARAM_VALUE 0 cred->process_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 0 cred->security 0,4096-ptr_max
PARAM_VALUE 0 cred->session_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->thread_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->ucounts 4096-ptr_max
PARAM_VALUE 0 cred->usage.counter 1
PARAM_VALUE 0 cred->user 4096-ptr_max
BUF_SIZE 1 label (-1)-0,104
DATA_SOURCE 0 cred r prepare_creds
NOCHECK_CALL

security/apparmor/task.c aa_set_current_hat() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 0 cred 4096-ptr_max
PARAM_VALUE 0 cred->group_info 4096-ptr_max
PARAM_VALUE 0 cred->non_rcu 0
PARAM_VALUE 0 cred->process_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->request_key_auth 0,4096-ptr_max
PARAM_VALUE 0 cred->security 0,4096-ptr_max
PARAM_VALUE 0 cred->session_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->thread_keyring 0,4096-ptr_max
PARAM_VALUE 0 cred->ucounts 4096-ptr_max
PARAM_VALUE 0 cred->usage.counter 1
PARAM_VALUE 0 cred->user 4096-ptr_max
BUF_SIZE 1 label (-1)-0,104
DATA_SOURCE 0 cred r prepare_creds
NOCHECK_CALL

security/apparmor/domain.c apparmor_bprm_creds_for_exec() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 0 cred 4096-ptr_max
PARAM_VALUE 1 label 4096-ptr_max
BUF_SIZE 1 label (-1)-0,104
BUF_SIZE 1 label (-1)-0,104
CAPPED_DATA 1 label 1
NOCHECK_CALL

security/apparmor/lsm.c apparmor_cred_alloc_blank() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 1 label 0
DATA_SOURCE 0 cred $0
NOCHECK_CALL

security/apparmor/lsm.c apparmor_cred_free() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 0 cred 4096-ptr_max
PARAM_VALUE 1 label 0
DATA_SOURCE 0 cred $0
NOCHECK_CALL

security/apparmor/lsm.c apparmor_cred_prepare() -> set_cred_label()

Type Parameter Key Value
DATA_SOURCE 0 cred $0
NOCHECK_CALL

security/apparmor/lsm.c apparmor_cred_transfer() -> set_cred_label()

Type Parameter Key Value
DATA_SOURCE 0 cred $0
NOCHECK_CALL

security/apparmor/lsm.c set_init_ctx() -> set_cred_label()

Type Parameter Key Value
PARAM_VALUE 1 label 4096-ptr_max
NOCHECK_CALL
HALF_LOCKED2 irq