Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
Dcontext.c152 type_datum_t *typdatum; in context_from_record() local
186 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()
Dwrite.c1209 type_datum_t *typdatum; in type_write() local
1216 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 …]
Dpolicydb.c1044 type_datum_t *typdatum; in type_index() local
1046 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() local
2423 typdatum = calloc(1, sizeof(type_datum_t)); in type_read()
2424 if (!typdatum) in type_read()
[all …]
Dservices.c1611 type_datum_t *typdatum; in convert_context() local
1643 typdatum = (type_datum_t *) in convert_context()
1646 if (!typdatum) { in convert_context()
1649 c->type = typdatum->s.value; in convert_context()
/third_party/selinux/checkpolicy/
Dpolicy_define.c3300 type_datum_t *typdatum; in define_filename_trans() local
3355 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() local
4438 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()