Lines Matching refs:aliasdatum

702 	level_datum_t *datum = 0, *aliasdatum = 0;  in define_sens()  local
772 aliasdatum = (level_datum_t *) malloc(sizeof(level_datum_t)); in define_sens()
773 if (!aliasdatum) { in define_sens()
777 level_datum_init(aliasdatum); in define_sens()
778 aliasdatum->isalias = TRUE; in define_sens()
779 aliasdatum->level = level; in define_sens()
781 ret = declare_symbol(SYM_LEVELS, id, aliasdatum, NULL, &value); in define_sens()
823 if (aliasdatum) { in define_sens()
824 level_datum_destroy(aliasdatum); in define_sens()
825 free(aliasdatum); in define_sens()
881 cat_datum_t *datum = 0, *aliasdatum = 0; in define_category() local
942 aliasdatum = (cat_datum_t *) malloc(sizeof(cat_datum_t)); in define_category()
943 if (!aliasdatum) { in define_category()
947 cat_datum_init(aliasdatum); in define_category()
948 aliasdatum->isalias = TRUE; in define_category()
949 aliasdatum->s.value = datum->s.value; in define_category()
952 declare_symbol(SYM_CATS, id, aliasdatum, NULL, in define_category()
993 if (aliasdatum) { in define_category()
994 cat_datum_destroy(aliasdatum); in define_category()
995 free(aliasdatum); in define_category()
1141 type_datum_t *aliasdatum = NULL; in add_aliases_to_type() local
1150 aliasdatum = (type_datum_t *) malloc(sizeof(type_datum_t)); in add_aliases_to_type()
1151 if (!aliasdatum) { in add_aliases_to_type()
1156 memset(aliasdatum, 0, sizeof(type_datum_t)); in add_aliases_to_type()
1157 aliasdatum->s.value = type->s.value; in add_aliases_to_type()
1159 ret = declare_symbol(SYM_TYPES, id, aliasdatum, in add_aliases_to_type()
1160 NULL, &aliasdatum->s.value); in add_aliases_to_type()
1179 type_datum_destroy(aliasdatum); in add_aliases_to_type()
1180 free(aliasdatum); in add_aliases_to_type()
1182 aliasdatum = hashtab_search(policydbp->symtab[SYM_TYPES].table, id); in add_aliases_to_type()
1183 assert(aliasdatum); in add_aliases_to_type()
1185 aliasdatum->primary = type->s.value; in add_aliases_to_type()
1186 aliasdatum->flavor = TYPE_ALIAS; in add_aliases_to_type()
1198 type_datum_destroy(aliasdatum); in add_aliases_to_type()
1199 free(aliasdatum); in add_aliases_to_type()