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()
1135 type_datum_t *typdatum; in type_write() local1142 typdatum = (type_datum_t *) datum; in type_write()1150 && typdatum->flavor == TYPE_ATTRIB) in type_write()1156 buf[items++] = cpu_to_le32(typdatum->s.value); in type_write()1162 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()1165 if (typdatum->primary) in type_write()1168 if (typdatum->flavor == TYPE_ATTRIB) { in type_write()1170 } else if (typdatum->flavor == TYPE_ALIAS in type_write()1174 if (typdatum->flags & TYPE_FLAGS_PERMISSIVE in type_write()1179 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()[all …]
979 type_datum_t *typdatum; in type_index() local981 typdatum = (type_datum_t *) datum; in type_index()984 if (typdatum->primary) { in type_index()985 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index()987 if (p->p_type_val_to_name[typdatum->s.value - 1] != NULL) in type_index()989 p->p_type_val_to_name[typdatum->s.value - 1] = (char *)key; in type_index()990 p->type_val_to_struct[typdatum->s.value - 1] = typdatum; in type_index()2370 type_datum_t *typdatum; in type_read() local2376 typdatum = calloc(1, sizeof(type_datum_t)); in type_read()2377 if (!typdatum) in type_read()[all …]
1634 type_datum_t *typdatum; in convert_context() local1666 typdatum = (type_datum_t *) in convert_context()1669 if (!typdatum) { in convert_context()1672 c->type = typdatum->s.value; in convert_context()
3241 type_datum_t *typdatum; in define_filename_trans() local3296 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans()3297 if (!typdatum) { in define_filename_trans()3303 otype = typdatum->s.value; in define_filename_trans()4327 type_datum_t *typdatum; in parse_security_context() local4420 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in parse_security_context()4422 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) { in parse_security_context()4427 c->type = typdatum->s.value; in parse_security_context()