Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- security/selinux/avc.c
- security/selinux/hooks.c
- security/selinux/selinuxfs.c
- security/selinux/xfrm.c, line 352
Smatch caller information:
security/selinux/selinuxfs.c sel_read_initcon() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sid | 0-16777215 |
| PARAM_VALUE | 1 | scontext | 3622673285005008896 |
| PARAM_VALUE | 2 | scontext_len | 2763261251789283328 |
security/selinux/selinuxfs.c sel_write_context() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sid | 1-19995 |
| PARAM_VALUE | 1 | scontext | 7310565380746108928 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 7919992284856938496 |
security/selinux/selinuxfs.c sel_write_create() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 7521145710827343872 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 4323382695247671296 |
security/selinux/selinuxfs.c sel_write_member() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 8972821495026970624 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 6548935339066052608 |
security/selinux/selinuxfs.c sel_write_relabel() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 2502249544072880128 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 4991363449779445760 |
security/selinux/xfrm.c selinux_xfrm_state_alloc_acquire() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sid | 1-u32max |
| PARAM_VALUE | 1 | scontext | 3396597002687127552 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 6558189131412684800 |
| DATA_SOURCE | 0 | sid | $2 |
security/selinux/avc.c avc_audit_post_callback() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 3969333004641230848 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 2945169047161745408 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/selinux/avc.c avc_audit_post_callback() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 855639196576055296 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 5564241989540569088 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/selinux/hooks.c selinux_dentry_init_security() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 4096-ptr_max |
| PARAM_VALUE | 2 | scontext_len | 4096-ptr_max |
security/selinux/hooks.c selinux_inode_getsecurity() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 667454973365702656 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 5893403593579864064 |
security/selinux/hooks.c selinux_key_getsecurity() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 1985259117703774208 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 5742088232770408448 |
security/selinux/hooks.c selinux_lsm_getattr() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sid | 1-u32max |
| PARAM_VALUE | 1 | scontext | 5284142899966955520,6325736178511859712 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0-255 |
| PARAM_VALUE | 2 | scontext_len | 4566355845938434048 |
| DATA_SOURCE | 1 | scontext | $2 |
security/selinux/hooks.c selinux_secid_to_secctx() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 1358969979973681152,3162575748011081728,7961403917118095360 |
| PARAM_VALUE | 2 | scontext_len | 1358969979973681160,3162575748011081736,7961403917118095368 |
| DATA_SOURCE | 0 | sid | $0 |
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock |
security/selinux/hooks.c selinux_secid_to_secctx() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 0 |
| PARAM_VALUE | 2 | scontext_len | 4388120492994306048 |
| DATA_SOURCE | 0 | sid | $0 |
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock |
security/selinux/hooks.c selinux_socket_getpeersec_stream() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sid | 1-u32max |
| PARAM_VALUE | 1 | scontext | 696612591963631616 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 2851053472452263936 |
security/selinux/hooks.c show_sid() -> security_sid_to_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | scontext | 5072188320116916224 |
| PARAM_VALUE | 1 | *scontext | 0 |
| PARAM_VALUE | 1 | *(*scontext) | 0 |
| PARAM_VALUE | 2 | scontext_len | 8137426551453970432 |
| DATA_SOURCE | 0 | sid | $1 |