Home
last modified time | relevance | path

Searched refs:target_class (Results 1 – 18 of 18) 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()
139 n->key.target_class, n->datum.data); in bounds_expand_cond_rules()
164 k->target_class, d->data); in bounds_expand_rule_callback()
275 new->key.target_class = class; in bounds_add_bad()
297 avtab_key.target_class = class; in bounds_check_rule()
343 key->target_type, key->target_class, in bounds_check_cond_rules()
372 k->target_class, d->data, &a->bad, &a->numbad); in bounds_check_rule_callback()
453 p->p_class_val_to_name[cur->key.target_class - 1], in bounds_report()
454 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()
269 if ((cp->tclass != k->target_class) || !perms) { in report_assertion_avtab_matches()
438 if (cp->tclass != k->target_class) in check_assertion_extended_permissions()
477 if (!match_any_class_permissions(avrule->perms, k->target_class, d->data)) in check_assertion_avtab_match()
Dexpand.c1506 key.target_class = tclass; in exp_rangetr_helper()
1532 rt->target_class = tclass; in exp_rangetr_helper()
1722 avkey.target_class = cur->tclass; in expand_terule_helper()
1759 p->p_class_val_to_name[avkey.target_class - in expand_terule_helper()
1768 p->p_class_val_to_name[avkey.target_class - 1], in expand_terule_helper()
1850 avkey.target_class = cur->tclass; in expand_avrule_helper()
3302 newkey.target_class = k->target_class; in expand_avtab_node()
3432 newkey.target_class = k->target_class; in expand_cond_av_node()
Dconditional.c913 cur_av->node->key.target_class == key->target_class) in cond_av_list_search()
Dwrite.c128 val = cur->key.target_class; in avtab_write_item()
221 buf16[2] = cpu_to_le16(cur->key.target_class); in avtab_write_item()
1577 if (args->new_rangetr || rt->target_class == SECCLASS_PROCESS) in rangetrans_count()
1594 if (!new_rangetr && rt->target_class != SECCLASS_PROCESS) { in range_write_helper()
1609 buf[0] = cpu_to_le32(rt->target_class); in range_write_helper()
Dpolicydb.c810 (key->target_class << 5)) & (h->size - 1); in rangetr_hash()
828 v = key1->target_class - key2->target_class; in rangetr_cmp()
3425 rt->target_class = le32_to_cpu(buf[0]); in range_read()
3427 rt->target_class = SECCLASS_PROCESS; in range_read()
3455 if (ebitmap_set_bit(&rtr->tclasses, rt->target_class - 1, 1)) in range_read()
Dmls.c626 rtr.target_class = tclass; in mls_compute_sid()
Dkernel_to_conf.c1657 class = pdb->p_class_val_to_name[key->target_class - 1]; in avtab_node_to_str()
1660 perms = sepol_av_to_string(pdb, key->target_class, data); in avtab_node_to_str()
1890 class = pdb->p_class_val_to_name[rt->target_class - 1]; in map_range_trans_to_str()
Dkernel_to_cil.c1688 class = pdb->p_class_val_to_name[key->target_class - 1]; in avtab_node_to_str()
1691 perms = sepol_av_to_string(pdb, key->target_class, data); in avtab_node_to_str()
1922 class = pdb->p_class_val_to_name[rt->target_class - 1]; in map_range_trans_to_str()
Dservices.c932 avkey.target_class = tclass; in context_struct_compute_av()
1420 avkey.target_class = tclass; in sepol_compute_sid()
/external/autotest/server/site_tests/cheets_CTS_N/
Dcheets_CTS_N.py161 def generate_test_command(self, target_module, target_plan, target_class, argument
173 if target_class is not None:
174 test_name = 'testcase.%s' % target_class
179 test_class=target_class,
202 target_class=None, argument
241 target_class,
/external/selinux/python/audit2allow/
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.h53 uint16_t target_class; member
Dpolicydb.h230 uint32_t target_class; member
/external/selinux/checkpolicy/
Dcheckpolicy.c182 k->target_class < c->key.target_class) in insert_type_rule()
273 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/selinux/libsepol/cil/src/
Dcil_binary.c977 cur_av->node->key.target_class == key->target_class && in cil_cond_av_list_search()
995 avtab_key.target_class = obj; in __cil_insert_type_rule()
1314 avtab_key.target_class = obj; in __cil_insert_avrule()
1686 sepol_obj = pdb->class_val_to_struct[avtab_key->target_class - 1]; in __cil_avrulex_ioctl_to_policydb()
1755 avtab_key->target_class = obj; in __cil_avrulex_ioctl_to_hashtable()
3166 newkey->target_class = sepol_class->s.value; in cil_rangetransition_to_policydb()
4247 return ((k->target_class + (k->target_type << 2) + in range_trans_hash()
4258 …e_type != b->source_type || a->target_type != b->target_type || a->target_class != b->target_class; in range_trans_compare()
4304 mix(k->target_class); in avrulex_hash()
4327 … != b->source_type || a->target_type != b->target_type || a->target_class != b->target_class || a-… in avrulex_compare()
[all …]