Searched refs:typdatum (Results 1 – 6 of 6) 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()
1104 type_datum_t *typdatum; in type_write() local1111 typdatum = (type_datum_t *) datum; in type_write()1119 && typdatum->flavor == TYPE_ATTRIB) in type_write()1125 buf[items++] = cpu_to_le32(typdatum->s.value); in type_write()1131 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()1134 if (typdatum->primary) in type_write()1137 if (typdatum->flavor == TYPE_ATTRIB) { in type_write()1139 } else if (typdatum->flavor == TYPE_ALIAS in type_write()1143 if (typdatum->flags & TYPE_FLAGS_PERMISSIVE in type_write()1148 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()[all …]
890 type_datum_t *typdatum; in type_index() local892 typdatum = (type_datum_t *) datum; in type_index()895 if (typdatum->primary) { in type_index()896 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim) in type_index()898 p->p_type_val_to_name[typdatum->s.value - 1] = (char *)key; in type_index()899 p->type_val_to_struct[typdatum->s.value - 1] = typdatum; in type_index()2265 type_datum_t *typdatum; in type_read() local2271 typdatum = calloc(1, sizeof(type_datum_t)); in type_read()2272 if (!typdatum) in type_read()2294 typdatum->s.value = le32_to_cpu(buf[++pos]); in type_read()[all …]
1571 type_datum_t *typdatum; in convert_context() local1603 typdatum = (type_datum_t *) in convert_context()1606 if (!typdatum) { in convert_context()1609 c->type = typdatum->s.value; in convert_context()
311 type_datum_t *typdatum; in declare_type() local327 typdatum = (type_datum_t *) malloc(sizeof(type_datum_t)); in declare_type()328 if (!typdatum) { in declare_type()333 type_datum_init(typdatum); in declare_type()334 typdatum->primary = primary; in declare_type()335 typdatum->flavor = isattr ? TYPE_ATTRIB : TYPE_TYPE; in declare_type()337 retval = declare_symbol(SYM_TYPES, id, typdatum, &value, &value); in declare_type()339 if (typdatum->primary) { in declare_type()340 typdatum->s.value = value; in declare_type()345 type_datum_destroy(typdatum); in declare_type()[all …]
3210 type_datum_t *typdatum; in define_filename_trans() local3263 typdatum = hashtab_search(policydbp->p_types.table, id); in define_filename_trans()3264 if (!typdatum) { in define_filename_trans()3269 otype = typdatum->s.value; in define_filename_trans()4284 type_datum_t *typdatum; in parse_security_context() local4377 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table, in parse_security_context()4379 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) { in parse_security_context()4384 c->type = typdatum->s.value; in parse_security_context()