Home
last modified time | relevance | path

Searched refs:target_class (Results 1 – 16 of 16) sorted by relevance

/external/selinux/libsepol/src/
Davtab.c76 mix(keyp->target_class); in avtab_hash()
150 key->target_class == cur->key.target_class && in avtab_insert()
164 key->target_class < cur->key.target_class) in avtab_insert()
194 key->target_class == cur->key.target_class && in avtab_insert_nonunique()
204 key->target_class < cur->key.target_class) in avtab_insert_nonunique()
226 key->target_class == cur->key.target_class && in avtab_search()
237 key->target_class < cur->key.target_class) in avtab_search()
261 key->target_class == cur->key.target_class && in avtab_search_node()
272 key->target_class < cur->key.target_class) in avtab_search_node()
289 node->key.target_class == cur->key.target_class && in avtab_search_node_next()
[all …]
Dhierarchy.c109 avtab_key.target_class = class; in bounds_expand_rule()
151 n->key.target_class, n->datum.data); in bounds_expand_cond_rules()
176 k->target_class, d->data); in bounds_expand_rule_callback()
287 new->key.target_class = class; in bounds_add_bad()
309 avtab_key.target_class = class; in bounds_check_rule()
379 key->target_type, key->target_class, in bounds_check_cond_rules()
408 k->target_class, d->data, &a->bad, &a->numbad); in bounds_check_rule_callback()
489 p->p_class_val_to_name[cur->key.target_class - 1], in bounds_report()
490 sepol_av_to_string(p, cur->key.target_class, in bounds_report()
Dassertion.c228 if (!match_any_class_permissions(avrule->perms, k->target_class, d->data)) in report_assertion_avtab_matches()
262 if ((cp->tclass != k->target_class) || !perms) { in report_assertion_avtab_matches()
422 if (cp->tclass != k->target_class) in check_assertion_extended_permissions()
461 if (!match_any_class_permissions(avrule->perms, k->target_class, d->data)) in check_assertion_avtab_match()
Dexpand.c1491 (check_rt->target_class == tclass)) { in exp_rangetr_helper()
1525 rt->target_class = tclass; in exp_rangetr_helper()
1700 avkey.target_class = cur->tclass; in expand_terule_helper()
1738 p->p_class_val_to_name[avkey.target_class - in expand_terule_helper()
1747 p->p_class_val_to_name[avkey.target_class - 1], in expand_terule_helper()
1824 avkey.target_class = cur->tclass; in expand_avrule_helper()
3253 newkey.target_class = k->target_class; in expand_avtab_node()
3383 newkey.target_class = k->target_class; in expand_cond_av_node()
Dconditional.c916 cur_av->node->key.target_class == key->target_class) in cond_av_list_search()
Dwrite.c126 val = cur->key.target_class; in avtab_write_item()
219 buf16[2] = cpu_to_le16(cur->key.target_class); in avtab_write_item()
1512 if (new_rangetr || rt->target_class == SECCLASS_PROCESS) in range_write()
1520 if (!new_rangetr && rt->target_class != SECCLASS_PROCESS) { in range_write()
1534 buf[0] = cpu_to_le32(rt->target_class); in range_write()
Dmls.c621 rtr->target_class == tclass) { in mls_compute_sid()
Dservices.c869 avkey.target_class = tclass; in context_struct_compute_av()
1356 avkey.target_class = tclass; in sepol_compute_sid()
Dpolicydb.c3133 rt->target_class = le32_to_cpu(buf[0]); in range_read()
3135 rt->target_class = SECCLASS_PROCESS; in range_read()
3166 if (ebitmap_set_bit(&rtr->tclasses, rt->target_class - 1, 1)) in range_read()
/external/selinux/policycoreutils/sepolgen-ifgen/
Dsepolgen-ifgen-attr-helper.c64 uint32_t tclass = key->target_class; in render_access_mask()
93 tclass = p->p_class_val_to_name[key->target_class - 1]; in render_key()
/external/selinux/libsepol/include/sepol/policydb/
Davtab.h52 uint16_t target_class; member
Dpolicydb.h220 uint32_t target_class; member
/external/selinux/checkpolicy/
Dcheckpolicy.c179 k->target_class < c->key.target_class) in insert_type_rule()
270 if (l1->key.target_class != l2->key.target_class in identify_equiv_types()
/external/selinux/checkpolicy/test/
Ddispol.c50 perm = sepol_av_to_string(p, key->target_class, mask); in render_access_mask()
68 tclass = p->p_class_val_to_name[key->target_class - 1]; in render_key()
/external/dbus/bus/
Dselinux.c432 security_class_t target_class, in bus_selinux_check() argument
444 target_class, requested, &aeref, auxdata) < 0) in bus_selinux_check()
/external/selinux/libsepol/cil/src/
Dcil_binary.c967 cur_av->node->key.target_class == key->target_class && in cil_cond_av_list_search()
985 avtab_key.target_class = obj; in __cil_insert_type_rule()
1280 avtab_key.target_class = obj; in __cil_insert_avrule()
1566 sepol_obj = pdb->class_val_to_struct[avtab_key->target_class - 1]; in __cil_avrulex_ioctl_to_policydb()
1635 avtab_key->target_class = obj; in __cil_avrulex_ioctl_to_hashtable()
2975 new->target_class = sepol_class->s.value; in cil_rangetransition_to_policydb()
3976 return ((k->target_class + (k->target_type << 2) + in range_trans_hash()
3987 …e_type != b->source_type || a->target_type != b->target_type || a->target_class != b->target_class; in range_trans_compare()
4033 mix(k->target_class); in avrulex_hash()
4056 … != b->source_type || a->target_type != b->target_type || a->target_class != b->target_class || a-… in avrulex_compare()
[all …]