Lines Matching refs:datum

128 		   hashtab_key_t key, hashtab_datum_t datum,  in declare_symbol()  argument
138 retval = symtab_insert(policydbp, symbol_type, key, datum, in declare_symbol()
623 hashtab_key_t key, hashtab_datum_t datum, in require_symbol() argument
633 retval = symtab_insert(policydbp, symbol_type, key, datum, in require_symbol()
656 ((type_datum_t *) datum)->flavor; in require_symbol()
723 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy() argument
728 free(datum); in perm_destroy()
745 class_datum_t *datum = NULL; in require_class() local
762 if ((datum = calloc(1, sizeof(*datum))) == NULL || in require_class()
763 symtab_init(&datum->permissions, PERM_SYMTAB_SIZE)) { in require_class()
768 require_symbol(SYM_CLASSES, class_id, datum, &datum->s.value, in require_class()
769 &datum->s.value); in require_class()
774 class_datum_destroy(datum); in require_class()
780 class_datum_destroy(datum); in require_class()
786 class_datum_destroy(datum); in require_class()
798 class_datum_destroy(datum); in require_class()
799 datum = in require_class()
802 assert(datum); /* the class datum should have existed */ in require_class()
816 perm = hashtab_search(datum->permissions.table, perm_id); in require_class()
817 if (!perm && datum->comdatum) in require_class()
819 hashtab_search(datum->comdatum->permissions.table, in require_class()
841 hashtab_insert(datum->permissions.table, perm_id, in require_class()
849 perm->s.value = datum->permissions.nprim + 1; in require_class()
852 if (add_perm_to_class(perm->s.value, datum->s.value) == -1) { in require_class()
859 datum->permissions.nprim++; in require_class()