Lines Matching refs:sepol_perm
310 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_common_to_policydb() local
311 memset(sepol_perm, 0, sizeof(perm_datum_t)); in cil_common_to_policydb()
314 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
316 free(sepol_perm); in cil_common_to_policydb()
319 sepol_perm->s.value = sepol_common->permissions.nprim + 1; in cil_common_to_policydb()
380 perm_datum_t *sepol_perm = cil_malloc(sizeof(*sepol_perm)); in cil_classorder_to_policydb() local
381 memset(sepol_perm, 0, sizeof(perm_datum_t)); in cil_classorder_to_policydb()
384 rc = hashtab_insert(sepol_class->permissions.table, key, sepol_perm); in cil_classorder_to_policydb()
386 free(sepol_perm); in cil_classorder_to_policydb()
390 sepol_perm->s.value = sepol_class->permissions.nprim + 1; in cil_classorder_to_policydb()
1256 perm_datum_t *sepol_perm; in __cil_perms_to_datum() local
1259 sepol_perm = hashtab_search(sepol_class->permissions.table, key); in __cil_perms_to_datum()
1260 if (sepol_perm == NULL) { in __cil_perms_to_datum()
1262 sepol_perm = hashtab_search(sepol_common->permissions.table, key); in __cil_perms_to_datum()
1263 if (sepol_perm == NULL) { in __cil_perms_to_datum()
1269 data |= 1 << (sepol_perm->s.value - 1); in __cil_perms_to_datum()