Home
last modified time | relevance | path

Searched refs:avkey (Results 1 – 4 of 4) sorted by relevance

/external/sepolicy/tools/sepolicy-analyze/
Ddups.c19 avtab_key_t avkey; in find_dups_helper() local
30 avkey.target_class = k->target_class; in find_dups_helper()
31 avkey.specified = k->specified; in find_dups_helper()
44 avkey.source_type = i + 1; in find_dups_helper()
45 avkey.target_type = j + 1; in find_dups_helper()
46 if (avkey.source_type == k->source_type && in find_dups_helper()
47 avkey.target_type == k->target_type) in find_dups_helper()
49 if (avkey.source_type == avkey.target_type) in find_dups_helper()
51 stype2 = policydb->type_val_to_struct[avkey.source_type - 1]; in find_dups_helper()
52 ttype2 = policydb->type_val_to_struct[avkey.target_type - 1]; in find_dups_helper()
[all …]
/external/selinux/libsepol/src/
Dassertion.c67 avtab_key_t avkey; in check_assertion_helper() local
73 avkey.source_type = stype + 1; in check_assertion_helper()
74 avkey.target_type = ttype + 1; in check_assertion_helper()
75 avkey.target_class = curperm->tclass; in check_assertion_helper()
76 avkey.specified = AVTAB_ALLOWED; in check_assertion_helper()
77 for (node = avtab_search_node(te_avtab, &avkey); in check_assertion_helper()
79 node = avtab_search_node_next(node, avkey.specified)) { in check_assertion_helper()
85 for (node = avtab_search_node(te_cond_avtab, &avkey); in check_assertion_helper()
87 node = avtab_search_node_next(node, avkey.specified)) { in check_assertion_helper()
Dservices.c842 avtab_key_t avkey; in context_struct_compute_av() local
869 avkey.target_class = tclass; in context_struct_compute_av()
870 avkey.specified = AVTAB_AV; in context_struct_compute_av()
879 avkey.source_type = i + 1; in context_struct_compute_av()
880 avkey.target_type = j + 1; in context_struct_compute_av()
882 avtab_search_node(&policydb->te_avtab, &avkey); in context_struct_compute_av()
885 avtab_search_node_next(node, avkey.specified)) { in context_struct_compute_av()
896 cond_compute_av(&policydb->te_cond_avtab, &avkey, avd); in context_struct_compute_av()
1306 avtab_key_t avkey; in sepol_compute_sid() local
1354 avkey.source_type = scontext->type; in sepol_compute_sid()
[all …]
Dexpand.c1676 avtab_key_t avkey; in expand_terule_helper() local
1697 avkey.source_type = stype + 1; in expand_terule_helper()
1698 avkey.target_type = ttype + 1; in expand_terule_helper()
1699 avkey.target_class = cur->tclass; in expand_terule_helper()
1700 avkey.specified = spec; in expand_terule_helper()
1706 node = avtab_search_node(&p->te_avtab, &avkey); in expand_terule_helper()
1710 node = avtab_search_node(&p->te_cond_avtab, &avkey); in expand_terule_helper()
1733 p->p_type_val_to_name[avkey.source_type - in expand_terule_helper()
1735 p->p_type_val_to_name[avkey.target_type - in expand_terule_helper()
1737 p->p_class_val_to_name[avkey.target_class - in expand_terule_helper()
[all …]