Home
last modified time | relevance | path

Searched refs:ttypes (Results 1 – 11 of 11) sorted by relevance

/external/selinux/libsepol/src/
Dexpand.c1392 ebitmap_t stypes, ttypes; in expand_filename_trans() local
1401 ebitmap_init(&ttypes); in expand_filename_trans()
1410 &cur_rule->ttypes, &ttypes, 1)) { in expand_filename_trans()
1420 ebitmap_for_each_bit(&ttypes, tnode, j) { in expand_filename_trans()
1484 ebitmap_destroy(&ttypes); in expand_filename_trans()
1564 ebitmap_t stypes, ttypes; in expand_range_trans() local
1572 ebitmap_init(&ttypes); in expand_range_trans()
1581 &rule->ttypes, &ttypes, 1)) { in expand_range_trans()
1592 ebitmap_for_each_bit(&ttypes, tnode, j) { in expand_range_trans()
1606 ebitmap_destroy(&ttypes); in expand_range_trans()
[all …]
Dassertion.c244 rc = ebitmap_and(&tgt_matches, &avrule->ttypes.types, &p->attr_type_map[k->target_type -1]); in report_assertion_avtab_matches()
413 rc = ebitmap_and(&tgt_matches, &avrule->ttypes.types, in check_assertion_extended_permissions()
501 rc = ebitmap_match_any(&avrule->ttypes.types, &p->attr_type_map[k->target_type -1]); in check_assertion_avtab_match()
Dmodule_to_cil.c1214 ts = &avrule->ttypes; in avrule_list_to_cil()
1545 char **ttypes = NULL; in range_trans_to_cil() local
1563 ts = &rule->ttypes; in range_trans_to_cil()
1564 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in range_trans_to_cil()
1577 …cil_printf("(rangetransition %s %s %s ", stypes[stype], ttypes[ttype], pdb->p_class_val_to_name[i]… in range_trans_to_cil()
1600 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1607 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1618 char **ttypes = NULL; in filename_trans_to_cil() local
1631 ts = &rule->ttypes; in filename_trans_to_cil()
1632 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in filename_trans_to_cil()
[all …]
Dlink.c1283 || type_set_convert(&cur->ttypes, &new_rule->ttypes, module, in copy_avrule_list()
1492 type_set_or_convert(&cur->ttypes, &new_rule->ttypes, module, state)) in copy_filename_trans_list()
1529 if (type_set_convert(&rule->ttypes, &new_rule->ttypes, in copy_range_trans_list()
Dpolicydb.c576 type_set_init(&x->ttypes); in avrule_init()
587 type_set_destroy(&x->ttypes); in avrule_destroy()
632 type_set_init(&x->ttypes); in filename_trans_rule_init()
640 type_set_destroy(&x->ttypes); in filename_trans_rule_destroy()
681 type_set_init(&x->ttypes); in range_trans_rule_init()
690 type_set_destroy(&x->ttypes); in range_trans_rule_destroy()
3322 if (type_set_read(&avrule->ttypes, fp)) in avrule_read()
3463 if (ebitmap_set_bit(&rtr->ttypes.types, rt->target_type - 1, 1)) in range_read()
3662 if (type_set_read(&ftr->ttypes, fp)) in filename_trans_rule_read()
3702 if (type_set_read(&rt->ttypes, fp)) in range_trans_rule_read()
Dwrite.c1664 if (type_set_write(&avrule->ttypes, fp)) in avrule_write()
1862 if (type_set_write(&ftr->ttypes, fp)) in filename_trans_rule_write()
1892 if (type_set_write(&rt->ttypes, fp)) in range_trans_rule_write()
/external/selinux/checkpolicy/
Dcheckpolicy.h8 ebitmap_t ttypes; member
Dpolicy_define.c1649 if (set_types(&avrule->ttypes, id, &add, 0)) in define_compute_type_helper()
2090 (&avrule->ttypes, id, &add, in define_te_avtab_xperms_helper()
2373 if (type_set_cpy(&dest->ttypes, &src->ttypes)) { in avrule_cpy()
2555 (&avrule->ttypes, id, &add, in define_te_avtab_helper()
3327 type_set_t stypes, ttypes; in define_filename_trans() local
3359 type_set_init(&ttypes); in define_filename_trans()
3372 if (set_types(&ttypes, id, &add, 0)) in define_filename_trans()
3410 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1)) in define_filename_trans()
3477 if (type_set_cpy(&ftr->ttypes, &ttypes)) { in define_filename_trans()
3490 type_set_destroy(&ttypes); in define_filename_trans()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h289 type_set_t ttypes; member
316 type_set_t ttypes; member
325 type_set_t ttypes; member
/external/selinux/checkpolicy/test/
Ddismod.c261 if (display_type_set(&avrule->ttypes, avrule->flags, policy, fp)) in display_avrule()
514 display_type_set(&tr->ttypes, 0, p, fp); in display_filename_trans()
/external/selinux/libsepol/cil/src/
Dcil_binary.c4526 __cil_init_sepol_type_set(&avrule->ttypes); in __cil_init_sepol_avrule()
4552 ebitmap_destroy(&curr->ttypes.types); in __cil_destroy_sepol_avrules()
4553 ebitmap_destroy(&curr->ttypes.negset); in __cil_destroy_sepol_avrules()
4708 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()