Searched refs:typdatum (Results 1 - 6 of 6) sorted by relevance

/external/libsepol/src/
H A Dcontext.c152 type_datum_t *typdatum; local
186 typdatum = (type_datum_t *) hashtab_search(policydb->p_types.table,
188 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) {
192 scontext->type = typdatum->s.value;
H A Dwrite.c1071 type_datum_t *typdatum; local
1078 typdatum = (type_datum_t *) datum;
1086 && typdatum->flavor == TYPE_ATTRIB)
1092 buf[items++] = cpu_to_le32(typdatum->s.value);
1098 buf[items++] = cpu_to_le32(typdatum->primary);
1101 if (typdatum->primary)
1104 if (typdatum->flavor == TYPE_ATTRIB) {
1106 } else if (typdatum->flavor == TYPE_ALIAS
1110 if (typdatum->flags & TYPE_FLAGS_PERMISSIVE
1115 buf[items++] = cpu_to_le32(typdatum
1848 type_datum_t *typdatum = datum; local
[all...]
H A Dpolicydb.c876 type_datum_t *typdatum; local
878 typdatum = (type_datum_t *) datum;
881 if (typdatum->primary) {
882 if (!typdatum->s.value || typdatum->s.value > p->p_types.nprim)
884 p->p_type_val_to_name[typdatum->s.value - 1] = (char *)key;
885 p->type_val_to_struct[typdatum->s.value - 1] = typdatum;
2251 type_datum_t *typdatum; local
2257 typdatum
[all...]
H A Dservices.c1495 type_datum_t *typdatum; local
1527 typdatum = (type_datum_t *)
1530 if (!typdatum) {
1533 c->type = typdatum->s.value;
/external/checkpolicy/
H A Dmodule_compiler.c310 type_datum_t *typdatum; local
326 typdatum = (type_datum_t *) malloc(sizeof(type_datum_t));
327 if (!typdatum) {
332 type_datum_init(typdatum);
333 typdatum->primary = primary;
334 typdatum->flavor = isattr ? TYPE_ATTRIB : TYPE_TYPE;
336 retval = declare_symbol(SYM_TYPES, id, typdatum, &value, &value);
338 if (typdatum->primary) {
339 typdatum->s.value = value;
344 type_datum_destroy(typdatum);
[all...]
H A Dpolicy_define.c2543 type_datum_t *typdatum; local
2596 typdatum = hashtab_search(policydbp->p_types.table, id);
2597 if (!typdatum) {
2602 otype = typdatum->s.value;
3611 type_datum_t *typdatum; local
3704 typdatum = (type_datum_t *) hashtab_search(policydbp->p_types.table,
3706 if (!typdatum || typdatum->flavor == TYPE_ATTRIB) {
3711 c->type = typdatum->s.value;

Completed in 423 milliseconds