Searched refs:scontext_len (Results 1 – 4 of 4) sorted by relevance
/external/selinux/libsepol/src/ |
D | context.c | 95 size_t scontext_len = 0; in context_to_string() local 99 scontext_len += in context_to_string() 101 scontext_len += in context_to_string() 103 scontext_len += strlen(policydb->p_type_val_to_name[context->type - 1]); in context_to_string() 104 scontext_len += mls_compute_context_len(policydb, context); in context_to_string() 107 scontext_len += 1; in context_to_string() 110 scontext = malloc(scontext_len); in context_to_string() 113 scontext[scontext_len - 1] = '\0'; in context_to_string() 132 *result_len = scontext_len; in context_to_string()
|
D | services.c | 1286 size_t * scontext_len) in sepol_sid_to_context() argument 1297 rc = context_to_string(NULL, policydb, context, scontext, scontext_len); in sepol_sid_to_context() 1308 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument 1315 scontext, scontext_len) < 0) in sepol_context_to_sid()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | services.h | 149 size_t * scontext_len); /* OUT */ 156 size_t scontext_len, /* IN */
|
/external/selinux/checkpolicy/ |
D | checkpolicy.c | 133 size_t scontext_len; in print_sid() local 136 rc = sepol_sid_to_context(sid, &scontext, &scontext_len); in print_sid() 394 size_t scontext_len, pathlen; in main() local 797 &scontext, &scontext_len); in main() 816 scontext_len = strlen(ans); in main() 817 ans[scontext_len - 1] = 0; in main() 818 ret = sepol_context_to_sid(ans, scontext_len, &ssid); in main()
|