Home
last modified time | relevance | path

Searched refs:scontext_len (Results 1 – 4 of 4) sorted by relevance

/external/libsepol/src/
Dcontext.c94 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()
Dservices.c1146 size_t * scontext_len) in sepol_sid_to_context() argument
1157 rc = context_to_string(NULL, policydb, context, scontext, scontext_len); in sepol_sid_to_context()
1168 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument
1175 scontext, scontext_len) < 0) in sepol_context_to_sid()
/external/libsepol/include/sepol/policydb/
Dservices.h130 size_t * scontext_len); /* OUT */
137 size_t scontext_len, /* IN */
/external/checkpolicy/
Dcheckpolicy.c126 size_t scontext_len; in print_sid() local
129 rc = sepol_sid_to_context(sid, &scontext, &scontext_len); in print_sid()
385 size_t scontext_len, pathlen; in main() local
733 &scontext, &scontext_len); in main()
752 scontext_len = strlen(ans); in main()
753 ans[scontext_len - 1] = 0; in main()
754 ret = sepol_context_to_sid(ans, scontext_len, &ssid); in main()