Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
H A Dexpand.c1448 ebitmap_t stypes, ttypes; in expand_filename_trans() local
1455 ebitmap_init(&ttypes); in expand_filename_trans()
1464 &cur_rule->ttypes, &ttypes, 1)) { in expand_filename_trans()
1471 ebitmap_for_each_positive_bit(&ttypes, tnode, j) { in expand_filename_trans()
1488 ebitmap_destroy(&ttypes); in expand_filename_trans()
1568 ebitmap_t stypes, ttypes; in expand_range_trans() local
1576 ebitmap_init(&ttypes); in expand_range_trans()
1585 &rule->ttypes, &ttypes, in expand_range_trans()
1906 expand_rule_helper(sepol_handle_t * handle, policydb_t * p, uint32_t * typemap, avrule_t * source_rule, avtab_t * dest_avtab, cond_av_list_t ** cond, cond_av_list_t ** other, int enabled, ebitmap_t * stypes, ebitmap_t * ttypes) expand_rule_helper() argument
1969 ebitmap_t stypes, ttypes; convert_and_expand_rule() local
2423 ebitmap_t stypes, ttypes; expand_rule() local
2638 ebitmap_t stypes, ttypes; copy_neverallow() local
[all...]
H A Dassertion.c245 rc = ebitmap_and(&tgt_matches, &avrule->ttypes.types, &p->attr_type_map[k->target_type -1]); in report_assertion_avtab_matches()
402 rc = ebitmap_and(&tgt_matches, &avrule->ttypes.types, in check_assertion_extended_permissions()
489 if (!ebitmap_match_any(&avrule->ttypes.types, &p->attr_type_map[k->target_type -1])) { in check_assertion_avtab_match()
H A Dmodule_to_cil.c1204 ts = &avrule->ttypes; in avrule_list_to_cil()
1529 char **ttypes = NULL; in range_trans_to_cil() local
1547 ts = &rule->ttypes; in range_trans_to_cil()
1548 rc = process_typeset(pdb, ts, attr_list, &ttypes, &num_ttypes); in range_trans_to_cil()
1557 cil_printf("(rangetransition %s %s %s ", stypes[stype], ttypes[ttype], pdb->p_class_val_to_name[i]); in range_trans_to_cil()
1580 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1587 names_destroy(&ttypes, &num_ttypes); in range_trans_to_cil()
1598 char **ttypes = NULL; in filename_trans_to_cil() local
1611 ts = &rule->ttypes; in filename_trans_to_cil()
1612 rc = process_typeset(pdb, ts, attr_list, &ttypes, in filename_trans_to_cil()
[all...]
H A Dlink.c1248 || type_set_convert(&cur->ttypes, &new_rule->ttypes, module) == -1) { in copy_avrule_list()
1445 type_set_or_convert(&cur->ttypes, &new_rule->ttypes, module)) in copy_filename_trans_list()
1481 if (type_set_convert(&rule->ttypes, &new_rule->ttypes, in copy_range_trans_list()
H A Dpolicydb_validate.c879 if (validate_type_set(&avrule->ttypes, &flavors[SYM_TYPES])) in validate_avrules()
1238 if (validate_type_set(&range_trans->ttypes, &flavors[SYM_TYPES])) in validate_range_trans_rules()
1285 if (validate_type_set(&filename_trans->ttypes, &flavors[SYM_TYPES])) in validate_filename_trans_rules()
H A Dpolicydb.c618 type_set_init(&x->ttypes); in avrule_init()
629 type_set_destroy(&x->ttypes); in avrule_destroy()
674 type_set_init(&x->ttypes); in filename_trans_rule_init()
682 type_set_destroy(&x->ttypes); in filename_trans_rule_destroy()
723 type_set_init(&x->ttypes); in range_trans_rule_init()
732 type_set_destroy(&x->ttypes); in range_trans_rule_destroy()
3534 if (type_set_read(&avrule->ttypes, fp)) in avrule_read()
3681 if (ebitmap_set_bit(&rtr->ttypes.types, rt->target_type - 1, 1)) in range_read()
3883 if (type_set_read(&ftr->ttypes, fp)) in filename_trans_rule_read()
3930 if (type_set_read(&rt->ttypes, f in range_trans_rule_read()
[all...]
H A Dwrite.c1768 if (type_set_write(&avrule->ttypes, fp)) in avrule_write()
1971 if (type_set_write(&ftr->ttypes, fp)) in filename_trans_rule_write()
2012 if (type_set_write(&rt->ttypes, fp)) in range_trans_rule_write()
/third_party/selinux/libsepol/include/sepol/policydb/
H A Dpolicydb.h291 type_set_t ttypes; member
319 type_set_t ttypes; member
328 type_set_t ttypes; member
/third_party/selinux/checkpolicy/
H A Dpolicy_define.c1645 if (set_types(&avrule->ttypes, id, &add, 0)) in define_compute_type_helper()
2087 (&avrule->ttypes, id, &add, in define_te_avtab_xperms_helper()
2357 if (type_set_cpy(&dest->ttypes, &src->ttypes)) { in avrule_cpy()
2549 (&avrule->ttypes, id, &add, in define_te_avtab_helper()
3304 type_set_t stypes, ttypes; in define_filename_trans() local
3334 type_set_init(&ttypes); in define_filename_trans()
3357 if (set_types(&ttypes, id, &add, 0)) in define_filename_trans()
3395 if (type_set_expand(&ttypes, &e_ttypes, policydbp, 1)) in define_filename_trans()
3452 if (type_set_cpy(&ftr->ttypes, in define_filename_trans()
[all...]
/third_party/selinux/checkpolicy/test/
H A 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/
H A Dcil_binary.c4624 __cil_init_sepol_type_set(&avrule->ttypes); in __cil_init_sepol_avrule()
4650 ebitmap_destroy(&curr->ttypes.types); in __cil_destroy_sepol_avrules()
4651 ebitmap_destroy(&curr->ttypes.negset); in __cil_destroy_sepol_avrules()
4817 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()

Completed in 34 milliseconds