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.c95 …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
97 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum()
98 if (*sepol_role == NULL) { in __cil_get_sepol_role_datum()
374 role_datum_t *sepol_role = cil_malloc(sizeof(*sepol_role)); in cil_role_to_policydb() local
375 role_datum_init(sepol_role); in cil_role_to_policydb()
385 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
389 if (ebitmap_set_bit(&sepol_role->dominates, value - 1, 1)) { in cil_role_to_policydb()
394 sepol_role->s.value = value; in cil_role_to_policydb()
399 role_datum_destroy(sepol_role); in cil_role_to_policydb()
400 free(sepol_role); in cil_role_to_policydb()
[all …]