Home
last modified time | relevance | path

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

/third_party/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.c199 result->next = p->cond_list; in cond_node_search()
200 p->cond_list = result; in cond_node_search()
445 for (cur = p->cond_list; cur != NULL; cur = cur->next) { in evaluate_conds()
456 p->cond_list = NULL; in cond_policydb_init()
517 cond_list_destroy(p->cond_list); in cond_policydb_destroy()
890 cond_av_list_t * cond_list) in cond_av_list_search() argument
895 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.c382 cond = &p->cond_list; in optimize_cond_avtab()
Dkernel_to_conf.c2029 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
2048 for (cond_av = cond_list; cond_av != NULL; cond_av = cond_av->next) { in write_cond_av_list_to_conf()
2101 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_conf()
2116 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_conf()
Dpolicydb_validate.c1324 if (validate_cond_list(handle, decl->cond_list, p, flavors)) in validate_avrule_blocks()
1506 if (validate_cond_list(handle, p->cond_list, p, flavors)) in policydb_validate()
Dkernel_to_cil.c2053 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
2072 for (cond_av = cond_list; cond_av != NULL; cond_av = cond_av->next) { in write_cond_av_list_to_cil()
2124 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_cil()
2135 for (cond = pdb->cond_list; cond != NULL; cond = cond->next) { in write_cond_nodes_to_cil()
Dlink.c1677 || copy_cond_list(src_decl->cond_list, &dest_decl->cond_list, in copy_avrule_decl()
2218 cond_list_t *cond = decl->cond_list; in cond_normalize()
Dexpand.c2084 new_cond = cond_node_search(state->out, state->out->cond_list, tmp); in cond_node_copy()
2806 if (cond_node_copy(state, decl->cond_list)) in copy_and_expand_avrule_block()
2889 for (cur_node = decl->cond_list; cur_node != NULL; in discard_tunables()
3164 cond_optimize_lists(state.out->cond_list); in expand_module()
Dmodule_to_cil.c1392 static int cond_list_to_cil(int indent, struct policydb *pdb, struct cond_node *cond_list, struct l… in cond_list_to_cil() argument
1397 for (cond = cond_list; cond != NULL; cond = cond->next) { in cond_list_to_cil()
3704 rc = cond_list_to_cil(indent, pdb, decl->cond_list, type_attr_list); in block_to_cil()
Dwrite.c2056 if (cond_write_list(p, decl->cond_list, fp) == -1 || in avrule_decl_write()
2365 if (cond_write_list(p, p->cond_list, fp)) in policydb_write()
Dpolicydb.c3992 if (cond_read_list(p, &decl->cond_list, fp) == -1 || in avrule_decl_read()
4466 if (cond_read_list(p, &p->cond_list, fp)) in policydb_read()
/third_party/selinux/libsepol/tests/
Dtest-linker-cond-map.c63 CU_ASSERT_FATAL(d->cond_list != NULL); in test_cond_expr_mapping()
64 CU_ASSERT_FATAL(d->cond_list->expr != NULL); in test_cond_expr_mapping()
66 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()
/third_party/selinux/libsepol/include/sepol/policydb/
Dconditional.h117 cond_av_list_t * cond_list);
Dpolicydb.h458 cond_list_t *cond_list; member
574 cond_list_t *cond_list; member
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c926 cond_av_list_t *cond_list = NULL; in __cil_cond_insert_rule() local
940 cond_list = cil_malloc(sizeof(cond_av_list_t)); in __cil_cond_insert_rule()
941 memset(cond_list, 0, sizeof(cond_av_list_t)); in __cil_cond_insert_rule()
943 cond_list->node = avtab_ptr; in __cil_cond_insert_rule()
946 cond_list->next = cond_node->true_list; in __cil_cond_insert_rule()
947 cond_node->true_list = cond_list; in __cil_cond_insert_rule()
949 cond_list->next = cond_node->false_list; in __cil_cond_insert_rule()
950 cond_node->false_list = cond_list; in __cil_cond_insert_rule()
957 static 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
961 for (cur_av = cond_list; cur_av != NULL; cur_av = cur_av->next) { in cil_cond_av_list_search()
[all …]
/third_party/selinux/checkpolicy/test/
Ddismod.c577 for (cur = p->cond_list; cur != NULL; cur = cur->next) {
621 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()
/third_party/selinux/checkpolicy/
Dmodule_compiler.c26 cond_list_t *cond_list; member
1468 s->u.cond_list = va_arg(ap, cond_list_t *); in push_stack()
Dcheckpolicy.c347 for (cur = policydbp->cond_list; cur != NULL; cur = cur->next) { in display_cond_expressions()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h54243 struct cond_node *cond_list; member