Searched refs:typdatum (Results 1 – 5 of 5) sorted by relevance
152 type_datum_t *typdatum; in context_from_record() local186 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table, in context_from_record()188 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) { in context_from_record()192 scontext->type = typdatum->s.value; in context_from_record()
1209 type_datum_t *typdatum; in type_write() local1216 typdatum = (type_datum_t *) datum; in type_write()1224 && typdatum->flavor == TYPE_ATTRIB) in type_write()1230 buf[items++] = cpu_to_le32(typdatum->s.value); in type_write()1236 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()1239 if (typdatum->primary) in type_write()1242 if (typdatum->flavor == TYPE_ATTRIB) { in type_write()1244 } else if (typdatum->flavor == TYPE_ALIAS in type_write()1248 if (typdatum->flags & TYPE_FLAGS_PERMISSIVE in type_write()1253 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()[all …]
1044 type_datum_t *typdatum; in type_index() local1046 typdatum = (type_datum_t *) datum; in type_index()1049 if (typdatum->primary) { in type_index()1050 if (!value_isvalid(typdatum->s.value, p->p_types.nprim)) in type_index()1052 if (p->p_type_val_to_name[typdatum->s.value - 1] != NULL) in type_index()1054 p->p_type_val_to_name[typdatum->s.value - 1] = (char *)key; in type_index()1055 p->type_val_to_struct[typdatum->s.value - 1] = typdatum; in type_index()2417 type_datum_t *typdatum; in type_read() local2423 typdatum = calloc(1, sizeof(type_datum_t)); in type_read()2424 if (!typdatum) in type_read()[all …]
1611 type_datum_t *typdatum; in convert_context() local1643 typdatum = (type_datum_t *) in convert_context()1646 if (!typdatum) { in convert_context()1649 c->type = typdatum->s.value; in convert_context()
3300 type_datum_t *typdatum; in define_filename_trans() local3355 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans()3356 if (!typdatum) { in define_filename_trans()3362 otype = typdatum->s.value; in define_filename_trans()4345 type_datum_t *typdatum; in parse_security_context() local4438 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in parse_security_context()4440 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) { in parse_security_context()4445 c->type = typdatum->s.value; in parse_security_context()