Home
last modified time | relevance | path

Searched refs:lvlrange (Results 1 – 7 of 7) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_tree.c47 void cil_tree_print_levelrange(struct cil_levelrange *lvlrange);
611 void cil_tree_print_levelrange(struct cil_levelrange *lvlrange) in cil_tree_print_levelrange() argument
614 if (lvlrange->low != NULL) { in cil_tree_print_levelrange()
616 cil_tree_print_level(lvlrange->low); in cil_tree_print_levelrange()
618 } else if (lvlrange->low_str != NULL) { in cil_tree_print_levelrange()
619 cil_log(CIL_INFO, " %s", lvlrange->low_str); in cil_tree_print_levelrange()
622 if (lvlrange->high != NULL) { in cil_tree_print_levelrange()
624 cil_tree_print_level(lvlrange->high); in cil_tree_print_levelrange()
626 } else if (lvlrange->high_str != NULL) { in cil_tree_print_levelrange()
627 cil_log(CIL_INFO, " %s", lvlrange->high_str); in cil_tree_print_levelrange()
[all …]
Dcil_resolve_ast.c1722 int cil_resolve_levelrange(struct cil_tree_node *current, struct cil_levelrange *lvlrange, void *ex… in cil_resolve_levelrange() argument
1728 if (lvlrange->low_str != NULL) { in cil_resolve_levelrange()
1729 rc = cil_resolve_name(current, lvlrange->low_str, CIL_SYM_LEVELS, extra_args, &low_datum); in cil_resolve_levelrange()
1733 lvlrange->low = (struct cil_level*)low_datum; in cil_resolve_levelrange()
1736 if (lvlrange->low->datum.name == NULL) { in cil_resolve_levelrange()
1737 rc = cil_resolve_level(current, lvlrange->low, extra_args); in cil_resolve_levelrange()
1742 } else if (lvlrange->low != NULL) { in cil_resolve_levelrange()
1743 rc = cil_resolve_level(current, lvlrange->low, extra_args); in cil_resolve_levelrange()
1749 if (lvlrange->high_str != NULL) { in cil_resolve_levelrange()
1750 rc = cil_resolve_name(current, lvlrange->high_str, CIL_SYM_LEVELS, extra_args, &high_datum); in cil_resolve_levelrange()
[all …]
Dcil_build_ast.c3874 int cil_fill_levelrange(struct cil_tree_node *low, struct cil_levelrange *lvlrange) in cil_fill_levelrange() argument
3884 if (low == NULL || lvlrange == NULL) { in cil_fill_levelrange()
3895 lvlrange->low_str = low->data; in cil_fill_levelrange()
3897 cil_level_init(&lvlrange->low); in cil_fill_levelrange()
3898 rc = cil_fill_level(low->cl_head, lvlrange->low); in cil_fill_levelrange()
3905 lvlrange->high_str = low->next->data; in cil_fill_levelrange()
3907 cil_level_init(&lvlrange->high); in cil_fill_levelrange()
3908 rc = cil_fill_level(low->next->cl_head, lvlrange->high); in cil_fill_levelrange()
3931 struct cil_levelrange *lvlrange = NULL; in cil_gen_levelrange() local
3943 cil_levelrange_init(&lvlrange); in cil_gen_levelrange()
[all …]
Dcil_build_ast.h165 int cil_fill_levelrange(struct cil_tree_node *low, struct cil_levelrange *lvlrange);
167 void cil_destroy_levelrange(struct cil_levelrange *lvlrange);
Dcil_policy.c262 static void cil_levelrange_to_policy(FILE *out, struct cil_levelrange *lvlrange) in cil_levelrange_to_policy() argument
264 cil_level_to_policy(out, lvlrange->low); in cil_levelrange_to_policy()
265 if (cil_levels_simple_and_equal(lvlrange->low, lvlrange->high) == CIL_FALSE) { in cil_levelrange_to_policy()
267 cil_level_to_policy(out, lvlrange->high); in cil_levelrange_to_policy()
Dcil_internal.h994 void cil_levelrange_init(struct cil_levelrange **lvlrange);
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_resolve_ast.c1426 …struct cil_levelrange *lvlrange = (struct cil_levelrange *)test_db->ast->root->cl_head->next->next… in test_cil_resolve_levelrange_namedlvl() local
1428 … cil_resolve_levelrange(test_db->ast->root->cl_head->next->next->next->next->next, lvlrange, args); in test_cil_resolve_levelrange_namedlvl()
1455 …struct cil_levelrange *lvlrange = (struct cil_levelrange *)test_db->ast->root->cl_head->next->next… in test_cil_resolve_levelrange_namedlvl_low_neg() local
1457 … cil_resolve_levelrange(test_db->ast->root->cl_head->next->next->next->next->next, lvlrange, args); in test_cil_resolve_levelrange_namedlvl_low_neg()
1484 …struct cil_levelrange *lvlrange = (struct cil_levelrange *)test_db->ast->root->cl_head->next->next… in test_cil_resolve_levelrange_namedlvl_high_neg() local
1486 … cil_resolve_levelrange(test_db->ast->root->cl_head->next->next->next->next->next, lvlrange, args); in test_cil_resolve_levelrange_namedlvl_high_neg()
1511 …struct cil_levelrange *lvlrange = (struct cil_levelrange *)test_db->ast->root->cl_head->next->next… in test_cil_resolve_levelrange_anonlvl() local
1513 int rc = cil_resolve_levelrange(test_db->ast->root->cl_head->next->next->next, lvlrange, args); in test_cil_resolve_levelrange_anonlvl()
1536 …struct cil_levelrange *lvlrange = (struct cil_levelrange *)test_db->ast->root->cl_head->next->next… in test_cil_resolve_levelrange_anonlvl_low_neg() local
1540 int rc = cil_resolve_levelrange(test_db->ast->root->cl_head->next->next->next, lvlrange, args); in test_cil_resolve_levelrange_anonlvl_low_neg()
[all …]