• Home
  • Raw
  • Download

Lines Matching refs:sepol_common

250 	common_datum_t *sepol_common = cil_malloc(sizeof(*sepol_common));  in cil_common_to_policydb()  local
251 memset(sepol_common, 0, sizeof(common_datum_t)); in cil_common_to_policydb()
254 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
256 free(sepol_common); in cil_common_to_policydb()
259 sepol_common->s.value = value; in cil_common_to_policydb()
261 rc = symtab_init(&sepol_common->permissions, PERM_SYMTAB_SIZE); in cil_common_to_policydb()
272 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
277 sepol_perm->s.value = sepol_common->permissions.nprim + 1; in cil_common_to_policydb()
278 sepol_common->permissions.nprim++; in cil_common_to_policydb()
282 *common_out = sepol_common; in cil_common_to_policydb()
302 common_datum_t *sepol_common = NULL; in cil_classorder_to_policydb() local
327 sepol_common = hashtab_search(pdb->p_commons.table, key); in cil_classorder_to_policydb()
328 if (sepol_common == NULL) { in cil_classorder_to_policydb()
329 rc = cil_common_to_policydb(pdb, cil_common, &sepol_common); in cil_classorder_to_policydb()
334 sepol_class->comdatum = sepol_common; in cil_classorder_to_policydb()
336 sepol_class->permissions.nprim += sepol_common->permissions.nprim; in cil_classorder_to_policydb()
1232 common_datum_t *sepol_common; in __perm_str_to_datum() local
1236 sepol_common = sepol_class->comdatum; in __perm_str_to_datum()
1237 sepol_perm = hashtab_search(sepol_common->permissions.table, perm_str); in __perm_str_to_datum()