Searched refs:typdatum (Results 1 – 5 of 5) sorted by relevance
153 type_datum_t *typdatum; in context_from_record() local187 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table, in context_from_record()189 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) { in context_from_record()193 scontext->type = typdatum->s.value; in context_from_record()
1137 type_datum_t *typdatum; in type_write() local1144 typdatum = (type_datum_t *) datum; in type_write()1152 && typdatum->flavor == TYPE_ATTRIB) in type_write()1158 buf[items++] = cpu_to_le32(typdatum->s.value); in type_write()1164 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()1167 if (typdatum->primary) in type_write()1170 if (typdatum->flavor == TYPE_ATTRIB) { in type_write()1172 } else if (typdatum->flavor == TYPE_ALIAS in type_write()1176 if (typdatum->flags & TYPE_FLAGS_PERMISSIVE in type_write()1181 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()[all …]
1018 type_datum_t *typdatum; in type_index() local1020 typdatum = (type_datum_t *) datum; in type_index()1023 if (typdatum->primary) { in type_index()1024 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index()1026 if (p->p_type_val_to_name[typdatum->s.value - 1] != NULL) in type_index()1028 p->p_type_val_to_name[typdatum->s.value - 1] = (char *)key; in type_index()1029 p->type_val_to_struct[typdatum->s.value - 1] = typdatum; in type_index()2416 type_datum_t *typdatum; in type_read() local2422 typdatum = calloc(1, sizeof(type_datum_t)); in type_read()2423 if (!typdatum) in type_read()[all …]
1635 type_datum_t *typdatum; in convert_context() local1667 typdatum = (type_datum_t *) in convert_context()1670 if (!typdatum) { in convert_context()1673 c->type = typdatum->s.value; in convert_context()
3334 type_datum_t *typdatum; in define_filename_trans() local3389 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans()3390 if (!typdatum) { in define_filename_trans()3396 otype = typdatum->s.value; in define_filename_trans()4420 type_datum_t *typdatum; in parse_security_context() local4513 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in parse_security_context()4515 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) { in parse_security_context()4520 c->type = typdatum->s.value; in parse_security_context()