Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 0 s->count 0-4294967294
PARAM_VALUE 0 s->frozen 0
PARAM_VALUE 1 index 0-4294967294
PARAM_VALUE 2 alloc 1
DATA_SOURCE 0 s $0
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_context_to_sid() -> sidtab_do_lookup()

Type Parameter Key Value
PARAM_VALUE 1 index 0-19967
PARAM_VALUE 2 alloc 1
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() -> sidtab_do_lookup()

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 1 index 0-19967,u32max
PARAM_VALUE 2 alloc 1
PREEMPT_ADD <- disables preempt
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_convert_hashtable() -> sidtab_do_lookup()

Type Parameter Key Value
PARAM_VALUE 0 s 4096-ptr_max
PARAM_VALUE 0 s->count 1-19968
PARAM_VALUE 0 s->roots 4096-ptr_max
PARAM_VALUE 1 index 0-19967
PARAM_VALUE 2 alloc 0
CAPPED_DATA 1 index 1
DATA_SOURCE 0 s $0
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_lookup() -> sidtab_do_lookup()

Type Parameter Key Value
PARAM_VALUE 0 s->count 1-u32max
PARAM_VALUE 1 index 0-4294967294
PARAM_VALUE 2 alloc 0
CAPPED_DATA 1 index 1
DATA_SOURCE 0 s $0
DATA_SOURCE 1 index $1
STR_LEN 0 s (-1),29
STR_LEN 0 s (-1),29
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read