Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 1 context 4096-ptr_max
BUF_SIZE 1 context (-1),144
BUF_SIZE 1 context (-1),144
DATA_SOURCE 0 s $0
DATA_SOURCE 1 context $1
DATA_SOURCE 2 hash r context_compute_hash
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

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

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 1 context 4096-ptr_max
BUF_SIZE 1 context (-1),144
BUF_SIZE 1 context (-1),144
DATA_SOURCE 0 s $0
DATA_SOURCE 1 context $1
DATA_SOURCE 2 hash r context_compute_hash
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &s->lock
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct sidtab)->lock

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

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 0 s->cache_free_slots 256
PARAM_VALUE 0 s->cache_lru_list.next 4096-ptr_max
PARAM_VALUE 0 s->cache_lru_list.next->next 4096-ptr_max
PARAM_VALUE 0 s->cache_lru_list.prev 4096-ptr_max
PARAM_VALUE 0 s->cache_lru_list.prev->next 4096-ptr_max
PARAM_VALUE 0 s->cache_lru_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 s->context_to_sid 4096-ptr_max
PARAM_VALUE 0 s->convert 0
PARAM_VALUE 0 s->count 0
PARAM_VALUE 0 s->frozen 0
PARAM_VALUE 0 s->isids 4096-ptr_max
PARAM_VALUE 0 s->roots->ptr_inner 0
PARAM_VALUE 0 s->roots->ptr_leaf 0
PARAM_VALUE 1 context 4096-ptr_max
BUF_SIZE 0 s 7344
BUF_SIZE 1 context 144
BUF_SIZE 1 context 144
DATA_SOURCE 0 s $0
DATA_SOURCE 1 context $2
DATA_SOURCE 2 hash r context_compute_hash
MEM_ZERO 0 s->roots
LOCK2 global &selinux_state.policy_mutex
TYPE_LOCK (struct selinux_state)->policy_mutex