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 security_compute_sid() -> policydb_context_isvalid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 2173082709012590592 |
| PARAM_VALUE | 1 | c->len | 0 |
| PARAM_VALUE | 1 | c->str | 0 |
| BUF_SIZE | 0 | p | 608 |
| MEM_ZERO | 1 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
security/selinux/ss/services.c security_sid_mls_copy() -> policydb_context_isvalid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->mls_enabled | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | c | 1378894460127510528 |
| PARAM_VALUE | 1 | c->len | 0 |
| PARAM_VALUE | 1 | c->str | 0 |
| BUF_SIZE | 0 | p | 608 |
| MEM_ZERO | 1 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
security/selinux/ss/services.c services_convert_context() -> policydb_context_isvalid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->symtab | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 4096-ptr_max |
| PARAM_VALUE | 1 | c->len | 0 |
| PARAM_VALUE | 1 | c->str | 0 |
| DATA_SOURCE | 1 | c | $2 |
| MEM_ZERO | 1 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &s->lock | ||
| HALF_LOCKED2 | flags |
security/selinux/ss/services.c string_to_context_struct() -> policydb_context_isvalid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->symtab | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 4096-ptr_max |
| PARAM_VALUE | 1 | c->len | 0 |
| PARAM_VALUE | 1 | c->str | 0 |
| BUF_SIZE | 0 | p | (-1),608 |
| BUF_SIZE | 0 | p | (-1),608 |
| DATA_SOURCE | 0 | p | $0 |
| DATA_SOURCE | 1 | c | $3 |
| MEM_ZERO | 1 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
security/selinux/ss/policydb.c context_read_and_validate() -> policydb_context_isvalid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4096-ptr_max |
| PARAM_VALUE | 0 | p->neveraudit_map.node->startbit | 1-u32max |
| PARAM_VALUE | 0 | p->permissive_map.node->startbit | 1-u32max |
| PARAM_VALUE | 0 | p->policycaps.node->startbit | 1-u32max |
| PARAM_VALUE | 0 | p->policyvers | 0 |
| PARAM_VALUE | 0 | p->process_class | 1-u16max |
| PARAM_VALUE | 0 | p->role_tr.htable | 0,4096-ptr_max |
| PARAM_VALUE | 0 | p->role_tr.size | 1-u32max |
| PARAM_VALUE | 0 | p->te_avtab.htable | 16,4096-ptr_max |
| PARAM_VALUE | 0 | p->te_avtab.mask | 0-u16max |
| PARAM_VALUE | 0 | p->te_avtab.nslot | 0-65536 |
| PARAM_VALUE | 1 | c | 4096-ptr_max |
| BUF_SIZE | 0 | p->genfs | (-1),24 |
| BUF_SIZE | 0 | p->role_allow | (-1),16 |
| BUF_SIZE | 1 | c | (-1),144 |
| BUF_SIZE | 1 | c | (-1),144 |
| CAPPED_DATA | 0 | p | 1 |
| CAPPED_DATA | 0 | p->process_class | 1 |
| CAPPED_DATA | 0 | p->role_tr.size | 1 |
| CAPPED_DATA | 0 | p->te_avtab.nslot | 1 |
| DATA_SOURCE | 0 | p | $1 |
| DATA_SOURCE | 1 | c | $0 |
| CONSTRAINT | 0 | p | <=3068 |
| MEM_ZERO | 0 | p | |
| MEM_ZERO | 0 | &p->filename_trans_ttypes | |
| MEM_ZERO | 0 | &p->neveraudit_map | |
| MEM_ZERO | 0 | &p->permissive_map | |
| MEM_ZERO | 0 | &p->policycaps | |
| NO_OVERFLOW_SIMPLE | 0 | p->cond_list_len | |
| NO_OVERFLOW_SIMPLE | 0 | p->filename_trans.size | |
| NO_OVERFLOW_SIMPLE | 0 | p->role_tr.size | |
| NO_OVERFLOW_SIMPLE | 0 | p->te_avtab.nslot | |
| NO_OVERFLOW_SIMPLE | 0 | p->te_cond_avtab.nslot | |
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |