Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

security/selinux/ss/services.c __security_genfs_sid() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 4096-ptr_max
PARAM_VALUE 3 *out_sid 3
DATA_SOURCE 3 out_sid $4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &selinux_state.policy_mutex
HALF_LOCKED2 rcu_read

security/selinux/ss/services.c security_fs_use() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &newsbsec->lock
HALF_LOCKED2 &sbsec->lock
TYPE_LOCK (struct superblock_security_struct)->lock

security/selinux/ss/services.c security_ib_endport_sid() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 1139087344666497024
PARAM_VALUE 3 *out_sid 0
CAPPED_DATA 1 c->u.ibendport.port 1
DATA_SOURCE 3 out_sid $2
LOCK2 rcu_read

security/selinux/ss/services.c security_ib_pkey_sid() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 8586216244756930560
PARAM_VALUE 3 *out_sid 0
CAPPED_DATA 1 c->u.ibpkey.low_pkey 1
CAPPED_DATA 1 c->u.ibpkey.subnet_prefix 1
DATA_SOURCE 3 out_sid $2
PARAM_COMPARE 1 c->u.ibpkey.high_pkey >= $1->u.ibpkey.low_pkey
PREEMPT_ADD
LOCK2 flags
LOCK2 global &sel_ib_pkey_lock
LOCK2 rcu_read

security/selinux/ss/services.c security_netif_sid() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 402357008797175808,4124775346183925760
DATA_SOURCE 3 out_sid $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 bh
LOCK2 global &sel_netif_lock
LOCK2 rcu_read

security/selinux/ss/services.c security_node_sid() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 5305927962487377920,7514839077229670400,8852450446833905664
DATA_SOURCE 3 out_sid $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 bh
LOCK2 global &sel_netnode_lock
LOCK2 rcu_read

security/selinux/ss/services.c security_port_sid() -> ocontext_to_sid()

Type Parameter Key Value
PARAM_VALUE 1 c 4096-ptr_max
PARAM_VALUE 2 index 0
PARAM_VALUE 3 out_sid 7514839077229670400,8516430308605923328
CAPPED_DATA 1 c->u.port.low_port 1
CAPPED_DATA 1 c->u.port.protocol 1
DATA_SOURCE 3 out_sid $2
PARAM_COMPARE 1 c->u.port.high_port >= $1->u.port.low_port
PREEMPT_ADD
LOCK2 bh
LOCK2 global &sel_netport_lock
LOCK2 rcu_read