Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
security/selinux/ss/services.c security_compute_sid() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 2173082709012590592 |
| PARAM_VALUE | 0 | c->len | 0 |
| PARAM_VALUE | 0 | c->str | 0 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/selinux/ss/services.c security_compute_sid() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 2173082709012590592 |
| PARAM_VALUE | 0 | c->str | 0 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/selinux/ss/services.c security_context_to_sid_core() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 8889487773105254400 |
| PARAM_VALUE | 0 | c->role | 0 |
| PARAM_VALUE | 0 | c->str | 0 |
| PARAM_VALUE | 0 | c->type | 0 |
| PARAM_VALUE | 0 | c->user | 0 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/selinux/ss/services.c security_context_to_sid_core() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 8889487773105254400 |
| PARAM_VALUE | 0 | c->role | 0 |
| PARAM_VALUE | 0 | c->str | 0,4096-ptr_max |
| PARAM_VALUE | 0 | c->type | 0 |
| PARAM_VALUE | 0 | c->user | 0 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | rcu_read |
security/selinux/ss/services.c security_sid_mls_copy() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 1378894460127510528 |
| PARAM_VALUE | 0 | c->len | 0 |
| PARAM_VALUE | 0 | c->str | 0 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/selinux/ss/services.c security_sid_mls_copy() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 1378894460127510528 |
| PARAM_VALUE | 0 | c->str | 0 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
security/selinux/ss/services.c selinux_audit_rule_free() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| NOCHECK_CALL |
security/selinux/ss/services.c services_convert_context() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->len | 0 |
| PARAM_VALUE | 0 | c->str | 0 |
| DATA_SOURCE | 0 | c | $2 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &s->lock | ||
| HALF_LOCKED2 | flags |
security/selinux/ss/services.c string_to_context_struct() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->len | 0 |
| PARAM_VALUE | 0 | c->str | 0 |
| DATA_SOURCE | 0 | c | $3 |
| MEM_ZERO | 0 | c | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | rcu_read |
security/selinux/ss/sidtab.c sidtab_context_to_sid() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->str | 0,4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &s->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct sidtab)->lock |
security/selinux/ss/sidtab.c sidtab_context_to_sid() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->str | 0,4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &s->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct sidtab)->lock |
security/selinux/ss/sidtab.c sidtab_destroy_entry() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &selinux_state.policy_mutex |
security/selinux/ss/policydb.c context_read_and_validate() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| BUF_SIZE | 0 | c | (-1),144 |
| BUF_SIZE | 0 | c | (-1),144 |
| DATA_SOURCE | 0 | c | $0 |
| NOCHECK_CALL | |||
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
security/selinux/ss/policydb.c ocontext_destroy() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| BUF_SIZE | 0 | c | 144 |
| NOCHECK_CALL | |||
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |
security/selinux/ss/policydb.c ocontext_destroy() -> context_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | global &selinux_state.policy_mutex | ||
| TYPE_LOCK | (struct selinux_state)->policy_mutex |