Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

security/selinux/ss/sidtab.c sidtab_context_to_sid() -> context_compute_hash()

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 $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

security/selinux/ss/sidtab.c sidtab_context_to_sid() -> context_compute_hash()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 0 c->str 0,16,4096-ptr_max
MEM_ZERO 0 c
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &s->lock
LOCK2 flags
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct sidtab)->lock

security/selinux/ss/sidtab.c sidtab_convert_hashtable() -> context_compute_hash()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PREEMPT_ADD
LOCK2 &s->lock
LOCK2 flags
LOCK2 global &selinux_state.policy_mutex
TYPE_LOCK (struct selinux_state)->policy_mutex
TYPE_LOCK (struct sidtab)->lock

security/selinux/ss/sidtab.c sidtab_set_initial() -> context_compute_hash()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
BUF_SIZE 0 c 144
BUF_SIZE 0 c 144
DATA_SOURCE 0 c $2
LOCK2 global &selinux_state.policy_mutex
TYPE_LOCK (struct selinux_state)->policy_mutex