Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil_resolve_ast.c1732 int cil_resolve_levelrange(struct cil_tree_node *current, struct cil_levelrange *lvlrange, void *ex… in cil_resolve_levelrange() argument
1738 if (lvlrange->low_str != NULL) { in cil_resolve_levelrange()
1739 rc = cil_resolve_name(current, lvlrange->low_str, CIL_SYM_LEVELS, extra_args, &low_datum); in cil_resolve_levelrange()
1743 lvlrange->low = (struct cil_level*)low_datum; in cil_resolve_levelrange()
1746 if (lvlrange->low->datum.name == NULL) { in cil_resolve_levelrange()
1747 rc = cil_resolve_level(current, lvlrange->low, extra_args); in cil_resolve_levelrange()
1752 } else if (lvlrange->low != NULL) { in cil_resolve_levelrange()
1753 rc = cil_resolve_level(current, lvlrange->low, extra_args); in cil_resolve_levelrange()
1759 if (lvlrange->high_str != NULL) { in cil_resolve_levelrange()
1760 rc = cil_resolve_name(current, lvlrange->high_str, CIL_SYM_LEVELS, extra_args, &high_datum); in cil_resolve_levelrange()
[all …]
Dcil_build_ast.c3875 int cil_fill_levelrange(struct cil_tree_node *low, struct cil_levelrange *lvlrange) in cil_fill_levelrange() argument
3885 if (low == NULL || lvlrange == NULL) { in cil_fill_levelrange()
3896 lvlrange->low_str = low->data; in cil_fill_levelrange()
3898 cil_level_init(&lvlrange->low); in cil_fill_levelrange()
3899 rc = cil_fill_level(low->cl_head, lvlrange->low); in cil_fill_levelrange()
3906 lvlrange->high_str = low->next->data; in cil_fill_levelrange()
3908 cil_level_init(&lvlrange->high); in cil_fill_levelrange()
3909 rc = cil_fill_level(low->next->cl_head, lvlrange->high); in cil_fill_levelrange()
3932 struct cil_levelrange *lvlrange = NULL; in cil_gen_levelrange() local
3944 cil_levelrange_init(&lvlrange); in cil_gen_levelrange()
[all …]
Dcil_build_ast.h167 int cil_fill_levelrange(struct cil_tree_node *low, struct cil_levelrange *lvlrange);
169 void cil_destroy_levelrange(struct cil_levelrange *lvlrange);
Dcil_policy.c263 static void cil_levelrange_to_policy(FILE *out, struct cil_levelrange *lvlrange) in cil_levelrange_to_policy() argument
265 cil_level_to_policy(out, lvlrange->low); in cil_levelrange_to_policy()
266 if (cil_levels_simple_and_equal(lvlrange->low, lvlrange->high) == CIL_FALSE) { in cil_levelrange_to_policy()
268 cil_level_to_policy(out, lvlrange->high); in cil_levelrange_to_policy()
Dcil_write_ast.c920 struct cil_levelrange *lvlrange = node->data; in cil_write_ast_node() local
921 fprintf(out, "(levelrange %s ", datum_to_str(DATUM(lvlrange))); in cil_write_ast_node()
922 write_range(out, lvlrange, CIL_FALSE); in cil_write_ast_node()
Dcil_internal.h1005 void cil_levelrange_init(struct cil_levelrange **lvlrange);
/third_party/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 …]