Home
last modified time | relevance | path

Searched refs:typdatum (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libsepol/src/
Dcontext.c153 type_datum_t *typdatum; in context_from_record() local
187 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()
Dwrite.c1137 type_datum_t *typdatum; in type_write() local
1144 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 …]
Dpolicydb.c1018 type_datum_t *typdatum; in type_index() local
1020 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() local
2422 typdatum = calloc(1, sizeof(type_datum_t)); in type_read()
2423 if (!typdatum) in type_read()
[all …]
Dservices.c1635 type_datum_t *typdatum; in convert_context() local
1667 typdatum = (type_datum_t *) in convert_context()
1670 if (!typdatum) { in convert_context()
1673 c->type = typdatum->s.value; in convert_context()
/external/selinux/checkpolicy/
Dpolicy_define.c3334 type_datum_t *typdatum; in define_filename_trans() local
3389 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() local
4513 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()