Searched refs:scontext_len (Results 1 – 4 of 4) sorted by relevance
/external/selinux/libsepol/src/ |
D | context.c | 94 size_t scontext_len = 0; in context_to_string() local 98 scontext_len += in context_to_string() 100 scontext_len += in context_to_string() 102 scontext_len += strlen(policydb->p_type_val_to_name[context->type - 1]); in context_to_string() 103 scontext_len += mls_compute_context_len(policydb, context); in context_to_string() 106 scontext_len += 1; in context_to_string() 109 scontext = malloc(scontext_len); in context_to_string() 112 scontext[scontext_len - 1] = '\0'; in context_to_string() 131 *result_len = scontext_len; in context_to_string()
|
D | services.c | 1222 size_t * scontext_len) in sepol_sid_to_context() argument 1233 rc = context_to_string(NULL, policydb, context, scontext, scontext_len); in sepol_sid_to_context() 1244 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument 1251 scontext, scontext_len) < 0) in sepol_context_to_sid()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | services.h | 147 size_t * scontext_len); /* OUT */ 154 size_t scontext_len, /* IN */
|
/external/selinux/checkpolicy/ |
D | checkpolicy.c | 127 size_t scontext_len; in print_sid() local 130 rc = sepol_sid_to_context(sid, &scontext, &scontext_len); in print_sid() 388 size_t scontext_len, pathlen; in main() local 768 &scontext, &scontext_len); in main() 787 scontext_len = strlen(ans); in main() 788 ans[scontext_len - 1] = 0; in main() 789 ret = sepol_context_to_sid(ans, scontext_len, &ssid); in main()
|