Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
security/selinux/ss/services.c string_to_context_struct() -> mls_context_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pol->symtab | 4096-ptr_max |
| PARAM_VALUE | 1 | oldc | 0,58 |
| PARAM_VALUE | 2 | scontext | 4099-18446744073709547521 |
| PARAM_VALUE | 3 | context | 4096-ptr_max |
| PARAM_VALUE | 3 | context->len | 0 |
| PARAM_VALUE | 3 | context->str | 0 |
| BUF_SIZE | 0 | pol | (-1),608 |
| BUF_SIZE | 0 | pol | (-1),608 |
| DATA_SOURCE | 0 | pol | $0 |
| DATA_SOURCE | 3 | context | $3 |
| DATA_SOURCE | 4 | s | $1 |
| DATA_SOURCE | 5 | def_sid | $4 |
| MEM_ZERO | 3 | context | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
security/selinux/ss/mls.c mls_from_string() -> mls_context_to_sid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pol | 4096-ptr_max |
| PARAM_VALUE | 0 | pol->mls_enabled | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | oldc | 58 |
| PARAM_VALUE | 2 | scontext | 4096-ptr_max |
| PARAM_VALUE | 3 | context | 4096-ptr_max |
| PARAM_VALUE | 3 | context->len | 0 |
| PARAM_VALUE | 3 | context->role | 0 |
| PARAM_VALUE | 3 | context->str | 0 |
| PARAM_VALUE | 3 | context->type | 0 |
| PARAM_VALUE | 3 | context->user | 0 |
| PARAM_VALUE | 4 | s | 0 |
| PARAM_VALUE | 5 | def_sid | 0 |
| BUF_SIZE | 0 | pol | 608 |
| DATA_SOURCE | 0 | pol | $0 |
| DATA_SOURCE | 2 | scontext | r kstrdup |
| DATA_SOURCE | 3 | context | $2 |
| MEM_ZERO | 3 | context | |
| LOCK2 | rcu_read |