Lines Matching defs:datum
146 class_datum_t *datum = 0;
161 datum = (class_datum_t *) malloc(sizeof(class_datum_t));
162 if (!datum) {
166 memset(datum, 0, sizeof(class_datum_t));
167 ret = declare_symbol(SYM_CLASSES, id, datum, &value, &value);
189 datum->s.value = value;
195 if (datum)
196 free(datum);
699 level_datum_t *datum = 0, *aliasdatum = 0;
732 datum = (level_datum_t *) malloc(sizeof(level_datum_t));
733 if (!datum) {
737 level_datum_init(datum);
738 datum->isalias = FALSE;
739 datum->level = level;
741 ret = declare_symbol(SYM_LEVELS, id, datum, &value, &value);
811 if (datum) {
812 level_datum_destroy(datum);
813 free(datum);
829 level_datum_t *datum;
846 datum =
849 if (!datum) {
855 if (datum->level->sens != 0) {
861 datum->level->sens = ++order;
878 cat_datum_t *datum = 0, *aliasdatum = 0;
902 datum = (cat_datum_t *) malloc(sizeof(cat_datum_t));
903 if (!datum) {
907 cat_datum_init(datum);
908 datum->isalias = FALSE;
910 ret = declare_symbol(SYM_CATS, id, datum, &value, &value);
932 datum->s.value = value;
946 aliasdatum->s.value = datum->s.value;
950 &datum->s.value);
981 if (datum) {
982 cat_datum_destroy(datum);
983 free(datum);
997 static int clone_level(hashtab_key_t key, hashtab_datum_t datum, void *arg)
999 level_datum_t *levdatum = (level_datum_t *) datum;
1369 type_datum_t *datum, *attr;
1401 if ((datum = declare_type(TRUE, FALSE)) == NULL) {
1406 if (add_aliases_to_type(datum) == -1) {
1434 if (ebitmap_set_bit(&attr->types, datum->s.value - 1, TRUE)) {
1516 type_datum_t *datum;
1562 datum = (type_datum_t *) hashtab_search(policydbp->p_types.table,
1564 if (!datum || datum->flavor == TYPE_ATTRIB) {
1578 perm->data = datum->s.value;
1644 cond_bool_datum_t *datum;
1664 datum = (cond_bool_datum_t *) malloc(sizeof(cond_bool_datum_t));
1665 if (!datum) {
1670 memset(datum, 0, sizeof(cond_bool_datum_t));
1672 datum->flags |= COND_BOOL_FLAGS_TUNABLE;
1673 ret = declare_symbol(SYM_BOOLS, id, datum, &value, &value);
1695 datum->s.value = value;
1704 datum->state = (int)(bool_value[0] == 'T') ? 1 : 0;
1707 cond_destroy_bool(id, datum, NULL);
2125 static int dominate_role_recheck(hashtab_key_t key, hashtab_datum_t datum,
2129 role_datum_t *rdatum = (role_datum_t *) datum;
2274 static int role_val_to_name_helper(hashtab_key_t key, hashtab_datum_t datum,
2280 roldatum = (role_datum_t *) datum;