Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_binary.c92 …il_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t **sepol_role) in __cil_get_sepol_role_datum() argument
94 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum()
95 if (*sepol_role == NULL) { in __cil_get_sepol_role_datum()
371 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb() local
372 role_datum_init(sepol_role); in cil_role_to_policydb()
382 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
386 if (ebitmap_set_bit(&sepol_role->dominates, value - 1, 1)) { in cil_role_to_policydb()
391 sepol_role->s.value = value; in cil_role_to_policydb()
396 role_datum_destroy(sepol_role); in cil_role_to_policydb()
397 free(sepol_role); in cil_role_to_policydb()
[all …]