Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dcontext.c95 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()
Dservices.c1285 size_t * scontext_len) in sepol_sid_to_context() argument
1296 rc = context_to_string(NULL, policydb, context, scontext, scontext_len); in sepol_sid_to_context()
1307 size_t scontext_len, sepol_security_id_t * sid) in sepol_context_to_sid() argument
1314 scontext, scontext_len) < 0) in sepol_context_to_sid()
/external/selinux/libsepol/include/sepol/policydb/
Dservices.h149 size_t * scontext_len); /* OUT */
156 size_t scontext_len, /* IN */
/external/selinux/checkpolicy/
Dcheckpolicy.c129 size_t scontext_len; in print_sid() local
132 rc = sepol_sid_to_context(sid, &scontext, &scontext_len); in print_sid()
390 size_t scontext_len, pathlen; in main() local
788 &scontext, &scontext_len); in main()
807 scontext_len = strlen(ans); in main()
808 ans[scontext_len - 1] = 0; in main()
809 ret = sepol_context_to_sid(ans, scontext_len, &ssid); in main()