Lines Matching refs:comdatum
498 common_datum_t *comdatum = 0; in define_common_perms() local
513 comdatum = hashtab_search(policydbp->p_commons.table, id); in define_common_perms()
514 if (comdatum) { in define_common_perms()
518 comdatum = (common_datum_t *) malloc(sizeof(common_datum_t)); in define_common_perms()
519 if (!comdatum) { in define_common_perms()
523 memset(comdatum, 0, sizeof(common_datum_t)); in define_common_perms()
525 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms()
535 comdatum->s.value = policydbp->p_commons.nprim + 1; in define_common_perms()
536 if (symtab_init(&comdatum->permissions, PERM_SYMTAB_SIZE)) { in define_common_perms()
548 perdatum->s.value = comdatum->permissions.nprim + 1; in define_common_perms()
555 ret = hashtab_insert(comdatum->permissions.table, in define_common_perms()
568 comdatum->permissions.nprim++; in define_common_perms()
576 if (comdatum) in define_common_perms()
577 free(comdatum); in define_common_perms()
592 common_datum_t *comdatum; in define_av_perms() local
615 if (cladatum->comdatum || cladatum->permissions.nprim) { in define_av_perms()
630 comdatum = in define_av_perms()
635 if (!comdatum) { in define_av_perms()
640 cladatum->comdatum = comdatum; in define_av_perms()
646 cladatum->permissions.nprim += comdatum->permissions.nprim; in define_av_perms()
669 (perm_datum_t *) hashtab_search(cladatum->comdatum-> in define_av_perms()
2118 if (cladatum->comdatum) { in define_te_avtab_xperms_helper()
2119 perdatum = hashtab_search(cladatum->comdatum-> in define_te_avtab_xperms_helper()
2600 if (cladatum->comdatum) { in define_te_avtab_helper()
2602 hashtab_search(cladatum->comdatum-> in define_te_avtab_helper()
3635 if (cladatum->comdatum) { in define_constraint()
3639 comdatum-> in define_constraint()