Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
Dexpand.c1410 ebitmap_t stypes, ttypes; in expand_filename_trans() local
1419 ebitmap_init(&ttypes); in expand_filename_trans()
1428 &cur_rule->ttypes, &ttypes, 1)) { in expand_filename_trans()
1436 ebitmap_for_each_positive_bit(&ttypes, tnode, j) { in expand_filename_trans()
1463 ebitmap_destroy(&ttypes); in expand_filename_trans()
1543 ebitmap_t stypes, ttypes; in expand_range_trans() local
1551 ebitmap_init(&ttypes); in expand_range_trans()
1560 &rule->ttypes, &ttypes, 1)) { in expand_range_trans()
1569 ebitmap_for_each_positive_bit(&ttypes, tnode, j) { in expand_range_trans()
1578 ebitmap_destroy(&ttypes); in expand_range_trans()
[all …]
Dassertion.c240 rc = ebitmap_and(&tgt_matches, &avrule->ttypes.types, &p->attr_type_map[k->target_type -1]); in report_assertion_avtab_matches()
400 rc = ebitmap_and(&tgt_matches, &avrule->ttypes.types, in check_assertion_extended_permissions()
483 rc = ebitmap_match_any(&avrule->ttypes.types, &p->attr_type_map[k->target_type -1]); in check_assertion_avtab_match()
Dmodule_to_cil.c1202 ts = &avrule->ttypes; in avrule_list_to_cil()
1530 char **ttypes = NULL; in range_trans_to_cil() local
1548 ts = &rule->ttypes; in range_trans_to_cil()
1549 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in range_trans_to_cil()
1558 …cil_printf("(rangetransition %s %s %s ", stypes[stype], ttypes[ttype], pdb->p_class_val_to_name[i]… in range_trans_to_cil()
1581 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1588 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1599 char **ttypes = NULL; in filename_trans_to_cil() local
1612 ts = &rule->ttypes; in filename_trans_to_cil()
1613 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in filename_trans_to_cil()
[all …]
Dpolicydb_validate.c436 if (validate_type_set(&avrule->ttypes, &flavors[SYM_TYPES])) in validate_avrules()
607 if (validate_type_set(&range_trans->ttypes, &flavors[SYM_TYPES])) in validate_range_trans_rules()
654 if (validate_type_set(&filename_trans->ttypes, &flavors[SYM_TYPES])) in validate_filename_trans_rules()
Dlink.c1271 || type_set_convert(&cur->ttypes, &new_rule->ttypes, module, in copy_avrule_list()
1478 type_set_or_convert(&cur->ttypes, &new_rule->ttypes, module, state)) in copy_filename_trans_list()
1515 if (type_set_convert(&rule->ttypes, &new_rule->ttypes, in copy_range_trans_list()
Dpolicydb.c605 type_set_init(&x->ttypes); in avrule_init()
616 type_set_destroy(&x->ttypes); in avrule_destroy()
661 type_set_init(&x->ttypes); in filename_trans_rule_init()
669 type_set_destroy(&x->ttypes); in filename_trans_rule_destroy()
710 type_set_init(&x->ttypes); in range_trans_rule_init()
719 type_set_destroy(&x->ttypes); in range_trans_rule_destroy()
3510 if (type_set_read(&avrule->ttypes, fp)) in avrule_read()
3657 if (ebitmap_set_bit(&rtr->ttypes.types, rt->target_type - 1, 1)) in range_read()
3858 if (type_set_read(&ftr->ttypes, fp)) in filename_trans_rule_read()
3898 if (type_set_read(&rt->ttypes, fp)) in range_trans_rule_read()
Dwrite.c1758 if (type_set_write(&avrule->ttypes, fp)) in avrule_write()
1960 if (type_set_write(&ftr->ttypes, fp)) in filename_trans_rule_write()
1990 if (type_set_write(&rt->ttypes, fp)) in range_trans_rule_write()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h291 type_set_t ttypes; member
318 type_set_t ttypes; member
327 type_set_t ttypes; member
/third_party/selinux/checkpolicy/
Dpolicy_define.c1637 if (set_types(&avrule->ttypes, id, &add, 0)) in define_compute_type_helper()
2079 (&avrule->ttypes, id, &add, in define_te_avtab_xperms_helper()
2349 if (type_set_cpy(&dest->ttypes, &src->ttypes)) { in avrule_cpy()
2540 (&avrule->ttypes, id, &add, in define_te_avtab_helper()
3295 type_set_t stypes, ttypes; in define_filename_trans() local
3325 type_set_init(&ttypes); in define_filename_trans()
3338 if (set_types(&ttypes, id, &add, 0)) in define_filename_trans()
3376 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1)) in define_filename_trans()
3415 if (type_set_cpy(&ftr->ttypes, &ttypes)) { in define_filename_trans()
3428 type_set_destroy(&ttypes); in define_filename_trans()
[all …]
/third_party/selinux/checkpolicy/test/
Ddismod.c260 if (display_type_set(&avrule->ttypes, avrule->flags, policy, fp)) in display_avrule()
513 display_type_set(&tr->ttypes, 0, p, fp); in display_filename_trans()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c4490 __cil_init_sepol_type_set(&avrule->ttypes); in __cil_init_sepol_avrule()
4516 ebitmap_destroy(&curr->ttypes.types); in __cil_destroy_sepol_avrules()
4517 ebitmap_destroy(&curr->ttypes.negset); in __cil_destroy_sepol_avrules()
4672 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()