Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_post.c684 if (db->val_to_role == NULL) { in __cil_post_db_array_helper()
685 db->val_to_role = cil_malloc(sizeof(*db->val_to_role) * db->num_roles); in __cil_post_db_array_helper()
687 db->val_to_role[role->value] = role; in __cil_post_db_array_helper()
1660 role = db->val_to_role[i]; in __cil_post_db_roletype_helper()
Dcil_internal.h312 struct cil_role **val_to_role; member
Dcil_binary.c743 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_role); in cil_userrole_to_policydb()
2324 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_src); in cil_roletrans_to_policydb()
2397 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_src); in cil_roleallow_to_policydb()
2401 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[j]), &sepol_tgt); in cil_roleallow_to_policydb()
2458 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_role); in __cil_constrain_expr_datum_to_sepol_expr()
Dcil.c449 (*db)->val_to_role = NULL; in cil_db_init()
496 free((*db)->val_to_role); in cil_db_destroy()