Home
last modified time | relevance | path

Searched refs:cond_list (Results 1 – 20 of 20) sorted by relevance

/external/selinux/libsepol/src/
Davrule_block.c99 cond_list_destroy(x->cond_list); in avrule_decl_destroy()
143 result = cond_node_find(p, cond, decl->cond_list, &was_created); in get_decl_cond_list()
145 result->next = decl->cond_list; in get_decl_cond_list()
146 decl->cond_list = result; in get_decl_cond_list()
Dconditional.c198 result->next = p->cond_list; in cond_node_search()
199 p->cond_list = result; in cond_node_search()
448 for (cur = p->cond_list; cur != NULL; cur = cur->next) { in evaluate_conds()
459 p->cond_list = NULL; in cond_policydb_init()
520 cond_list_destroy(p->cond_list); in cond_policydb_destroy()
904 cond_av_list_t * cond_list) in cond_av_list_search() argument
909 for (cur_av = cond_list; cur_av != NULL; cur_av = cur_av->next) { in cond_av_list_search()
Dhierarchy.c168 cond_list_t *cond_list; member
206 for (cur = p->cond_list; cur; cur = cur->next) { in bounds_expand_parent_rules()
212 ci->cond_list = cur; in bounds_expand_parent_rules()
392 cond_list_t *node = cur->cond_list; in bounds_check_child_rules()
Doptimize.c304 cond = &p->cond_list; in optimize_cond_avtab()
Dkernel_to_conf.c1966 static int write_cond_av_list_to_conf(FILE *out, struct policydb *pdb, cond_av_list_t *cond_list, i… in write_cond_av_list_to_conf() argument
1985 for (cond_av = cond_list; cond_av != NULL; cond_av = cond_av->next) { in write_cond_av_list_to_conf()
2038 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_conf()
2053 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_conf()
Dkernel_to_cil.c1986 static int write_cond_av_list_to_cil(FILE *out, struct policydb *pdb, cond_av_list_t *cond_list, in… in write_cond_av_list_to_cil() argument
2005 for (cond_av = cond_list; cond_av != NULL; cond_av = cond_av->next) { in write_cond_av_list_to_cil()
2057 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_cil()
2068 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_cil()
Dlink.c1724 || copy_cond_list(src_decl->cond_list, &dest_decl->cond_list, in copy_avrule_decl()
2265 cond_list_t *cond = decl->cond_list; in cond_normalize()
Dexpand.c2055 new_cond = cond_node_search(state->out, state->out->cond_list, tmp); in cond_node_copy()
2777 if (cond_node_copy(state, decl->cond_list)) in copy_and_expand_avrule_block()
2860 for (cur_node = decl->cond_list; cur_node != NULL; in discard_tunables()
3131 cond_optimize_lists(state.out->cond_list); in expand_module()
Dmodule_to_cil.c1393 static int cond_list_to_cil(int indent, struct policydb *pdb, struct cond_node *cond_list, struct l… in cond_list_to_cil() argument
1398 for (cond = cond_list; cond != NULL; cond = cond->next) { in cond_list_to_cil()
3652 rc = cond_list_to_cil(indent, pdb, decl->cond_list, type_attr_list); in block_to_cil()
Dwrite.c1965 if (cond_write_list(p, decl->cond_list, fp) == -1 || in avrule_decl_write()
2276 if (cond_write_list(p, p->cond_list, fp)) in policydb_write()
Dpolicydb.c3780 if (cond_read_list(p, &decl->cond_list, fp) == -1 || in avrule_decl_read()
4193 if (cond_read_list(p, &p->cond_list, fp)) in policydb_read()
/external/selinux/libsepol/tests/
Dtest-linker-cond-map.c62 CU_ASSERT_FATAL(d->cond_list != NULL); in test_cond_expr_mapping()
63 CU_ASSERT_FATAL(d->cond_list->expr != NULL); in test_cond_expr_mapping()
65 expr = d->cond_list->expr; in test_cond_expr_mapping()
Dtest-cond.c74 a = base_expanded.cond_list; in test_cond_expr_equal()
76 b = base_expanded.cond_list; in test_cond_expr_equal()
/external/selinux/libsepol/include/sepol/policydb/
Dconditional.h117 cond_av_list_t * cond_list);
Dpolicydb.h456 cond_list_t *cond_list; member
572 cond_list_t *cond_list; member
/external/selinux/libsepol/cil/src/
Dcil_binary.c930 cond_av_list_t *cond_list = NULL; in __cil_cond_insert_rule() local
944 cond_list = cil_malloc(sizeof(cond_av_list_t)); in __cil_cond_insert_rule()
945 memset(cond_list, 0, sizeof(cond_av_list_t)); in __cil_cond_insert_rule()
947 cond_list->node = avtab_ptr; in __cil_cond_insert_rule()
950 cond_list->next = cond_node->true_list; in __cil_cond_insert_rule()
951 cond_node->true_list = cond_list; in __cil_cond_insert_rule()
953 cond_list->next = cond_node->false_list; in __cil_cond_insert_rule()
954 cond_node->false_list = cond_list; in __cil_cond_insert_rule()
961 avtab_datum_t *cil_cond_av_list_search(avtab_key_t *key, cond_av_list_t *cond_list) in cil_cond_av_list_search() argument
965 for (cur_av = cond_list; cur_av != NULL; cur_av = cur_av->next) { in cil_cond_av_list_search()
[all …]
/external/selinux/checkpolicy/test/
Ddismod.c578 for (cur = p->cond_list; cur != NULL; cur = cur->next) {
622 cond_list_t *cond = decl->cond_list; in display_avdecl()
Ddispol.c232 for (cur = p->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions()
/external/selinux/checkpolicy/
Dmodule_compiler.c26 cond_list_t *cond_list; member
1459 s->u.cond_list = va_arg(ap, cond_list_t *); in push_stack()
Dcheckpolicy.c349 for (cur = policydbp->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions()