Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dexpand.c1391 ebitmap_t stypes, ttypes; in expand_filename_trans() local
1400 ebitmap_init(&ttypes); in expand_filename_trans()
1409 &cur_rule->ttypes, &ttypes, 1)) { in expand_filename_trans()
1419 ebitmap_for_each_bit(&ttypes, tnode, j) { in expand_filename_trans()
1477 ebitmap_destroy(&ttypes); in expand_filename_trans()
1557 ebitmap_t stypes, ttypes; in expand_range_trans() local
1565 ebitmap_init(&ttypes); in expand_range_trans()
1574 &rule->ttypes, &ttypes, 1)) { in expand_range_trans()
1585 ebitmap_for_each_bit(&ttypes, tnode, j) { in expand_range_trans()
1599 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.c1181 ts = &avrule->ttypes; in avrule_list_to_cil()
1513 char **ttypes = NULL; in range_trans_to_cil() local
1531 ts = &rule->ttypes; in range_trans_to_cil()
1532 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in range_trans_to_cil()
1545 …cil_printf("(rangetransition %s %s %s ", stypes[stype], ttypes[ttype], pdb->p_class_val_to_name[i]… in range_trans_to_cil()
1568 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1575 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1586 char **ttypes = NULL; in filename_trans_to_cil() local
1599 ts = &rule->ttypes; in filename_trans_to_cil()
1600 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in filename_trans_to_cil()
[all …]
Dpolicydb.c539 type_set_init(&x->ttypes); in avrule_init()
550 type_set_destroy(&x->ttypes); in avrule_destroy()
593 type_set_init(&x->ttypes); in filename_trans_rule_init()
601 type_set_destroy(&x->ttypes); in filename_trans_rule_destroy()
642 type_set_init(&x->ttypes); in range_trans_rule_init()
651 type_set_destroy(&x->ttypes); in range_trans_rule_destroy()
3224 if (type_set_read(&avrule->ttypes, fp)) in avrule_read()
3319 if (ebitmap_set_bit(&rtr->ttypes.types, rt->target_type - 1, 1)) in range_read()
3518 if (type_set_read(&ftr->ttypes, fp)) in filename_trans_rule_read()
3558 if (type_set_read(&rt->ttypes, fp)) in range_trans_rule_read()
Dlink.c1283 || type_set_convert(&cur->ttypes, &new_rule->ttypes, module, in copy_avrule_list()
1483 type_set_or_convert(&cur->ttypes, &new_rule->ttypes, module, state)) in copy_filename_trans_list()
1520 if (type_set_convert(&rule->ttypes, &new_rule->ttypes, in copy_range_trans_list()
Dwrite.c1638 if (type_set_write(&avrule->ttypes, fp)) in avrule_write()
1798 if (type_set_write(&ftr->ttypes, fp)) in filename_trans_rule_write()
1828 if (type_set_write(&rt->ttypes, fp)) in range_trans_rule_write()
/external/selinux/checkpolicy/
Dcheckpolicy.h8 ebitmap_t ttypes; member
Dpolicy_define.c1638 if (set_types(&avrule->ttypes, id, &add, 0)) in define_compute_type_helper()
2079 (&avrule->ttypes, id, &add, in define_te_avtab_xperms_helper()
2362 if (type_set_cpy(&dest->ttypes, &src->ttypes)) { in avrule_cpy()
2544 (&avrule->ttypes, id, &add, in define_te_avtab_helper()
3316 type_set_t stypes, ttypes; in define_filename_trans() local
3348 type_set_init(&ttypes); in define_filename_trans()
3361 if (set_types(&ttypes, id, &add, 0)) in define_filename_trans()
3399 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1)) in define_filename_trans()
3466 if (type_set_cpy(&ftr->ttypes, &ttypes)) { in define_filename_trans()
3479 type_set_destroy(&ttypes); in define_filename_trans()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h286 type_set_t ttypes; member
313 type_set_t ttypes; member
322 type_set_t ttypes; member
/external/selinux/checkpolicy/test/
Ddismod.c254 if (display_type_set(&avrule->ttypes, avrule->flags, policy, fp)) in display_avrule()
489 display_type_set(&tr->ttypes, 0, p, fp); in display_filename_trans()
/external/selinux/libsepol/cil/src/
Dcil_binary.c4441 __cil_init_sepol_type_set(&avrule->ttypes); in __cil_init_sepol_avrule()
4467 ebitmap_destroy(&curr->ttypes.types); in __cil_destroy_sepol_avrules()
4468 ebitmap_destroy(&curr->ttypes.negset); in __cil_destroy_sepol_avrules()
4623 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()