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()
1664 role = db->val_to_role[i]; in __cil_post_db_roletype_helper()
Dcil_internal.h311 struct cil_role **val_to_role; member
Dcil_binary.c756 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_role); in cil_userrole_to_policydb()
2373 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_src); in cil_roletrans_to_policydb()
2450 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_src); in cil_roleallow_to_policydb()
2456 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[j]), &sepol_tgt); in cil_roleallow_to_policydb()
2519 rc = __cil_get_sepol_role_datum(pdb, DATUM(db->val_to_role[i]), &sepol_role); in __cil_constrain_expr_datum_to_sepol_expr()
Dcil.c286 (*db)->val_to_role = NULL; in cil_db_init()
333 free((*db)->val_to_role); in cil_db_destroy()