Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_binary.c248 common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common)); in cil_common_to_policydb() local
249 memset(sepol_common, 0, sizeof(common_datum_t)); in cil_common_to_policydb()
252 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
254 free(sepol_common); in cil_common_to_policydb()
257 sepol_common->s.value = value; in cil_common_to_policydb()
259 rc = symtab_init(&sepol_common->permissions, PERM_SYMTAB_SIZE); in cil_common_to_policydb()
270 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
275 sepol_perm->s.value = sepol_common->permissions.nprim + 1; in cil_common_to_policydb()
276 sepol_common->permissions.nprim++; in cil_common_to_policydb()
280 *common_out = sepol_common; in cil_common_to_policydb()
[all …]