Home
last modified time | relevance | path

Searched refs:source_type (Results 1 – 7 of 7) sorted by relevance

/system/sepolicy/tools/sepolicy-analyze/
Dtypecmp.c21 if (k->source_type < c->key.source_type) in insert_type_rule()
23 if (k->source_type == c->key.source_type && in insert_type_rule()
26 if (k->source_type == c->key.source_type && in insert_type_rule()
33 k->source_type == c->key.source_type && in insert_type_rule()
67 key.source_type = 0; in create_type_rules_helper()
68 if (k->source_type == k->target_type) { in create_type_rules_helper()
72 if (insert_type_rule(&key, d, &type_rules[k->source_type - 1])) in create_type_rules_helper()
75 if (k->source_type == k->target_type) in create_type_rules_helper()
127 if (l1->key.source_type < c->key.source_type) in find_match()
129 if (l1->key.source_type == c->key.source_type && in find_match()
[all …]
Ddups.c27 if (k->source_type == k->target_type) in find_dups_helper()
33 sattr = &policydb->type_attr_map[k->source_type - 1]; in find_dups_helper()
35 stype = policydb->type_val_to_struct[k->source_type - 1]; in find_dups_helper()
44 avkey.source_type = i + 1; in find_dups_helper()
46 if (avkey.source_type == k->source_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()
Dutils.c15 policydb->p_type_val_to_name[key->source_type in display_allow()
16 ? key->source_type - 1 : idx], in display_allow()
17 key->target_type == key->source_type ? "self" : in display_allow()
/system/sepolicy/tools/
Dsepolicy-check.c63 int expand_and_check(int s_op, uint32_t source_type, in expand_and_check() argument
86 match &= check(s_op, source_type, cur->key.source_type); in expand_and_check()
128 key.source_type = key.target_type = key.target_class = 0; in check_rule()
167 key.source_type = src->s.value; in check_rule()
174 match = expand_and_check(s_op, key.source_type, in check_rule()
182 return expand_and_check(s_op, key.source_type, in check_rule()
/system/bt/common/
Dmetrics.h476 android::bluetooth::DeviceInfoSrcEnum source_type,
Dmetrics.cc828 android::bluetooth::DeviceInfoSrcEnum source_type, in LogManufacturerInfo() argument
844 source_type, source_name.c_str(), manufacturer.c_str(), model.c_str(), in LogManufacturerInfo()
848 << source_type << ", source_name " << source_name in LogManufacturerInfo()
/system/sepolicy/tests/
Dsepol_wrap.cpp281 db->p_type_val_to_name[(avtab_i->cur)->key.source_type - 1], in get_avtab_allow_rule()