Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_binary.c126 …il_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t **sepol_type) in __cil_get_sepol_type_datum() argument
128 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum()
129 if (*sepol_type == NULL) { in __cil_get_sepol_type_datum()
466 type_datum_t *sepol_type = NULL; in cil_roletype_to_policydb() local
476 rc = __cil_get_sepol_type_datum(pdb, DATUM(db->val_to_type[i]), &sepol_type); in cil_roletype_to_policydb()
479 if (ebitmap_set_bit(&sepol_role->types.types, sepol_type->s.value - 1, 1)) { in cil_roletype_to_policydb()
498 type_datum_t *sepol_type = cil_malloc(sizeof(*sepol_type)); in cil_type_to_policydb() local
499 type_datum_init(sepol_type); in cil_type_to_policydb()
501 sepol_type->flavor = TYPE_TYPE; in cil_type_to_policydb()
504 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); in cil_type_to_policydb()
[all …]