Home
last modified time | relevance | path

Searched refs:catset (Results 1 – 11 of 11) sorted by relevance

/external/selinux/libsepol/cil/test/integration_testing/
Dmls_policy.cil11 (categoryset catset (c0 c2 c3))
32 (level low (s0 catset))
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c236 static void cil_reset_catset(struct cil_catset *catset) in cil_reset_catset() argument
238 cil_reset_cats(catset->cats); in cil_reset_catset()
Dcil_resolve_ast.h69 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args);
Dcil_resolve_ast.c1649 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args) in cil_resolve_catset() argument
1653 rc = cil_resolve_cats(current, catset->cats, extra_args); in cil_resolve_catset()
1658 rc = cil_verify_no_self_reference((struct cil_symtab_datum *)catset, catset->cats->datum_expr); in cil_resolve_catset()
1660 cil_list_destroy(&catset->cats->datum_expr, CIL_FALSE); in cil_resolve_catset()
2853 struct cil_catset *catset = NULL; in cil_resolve_call1() local
2855 cil_catset_init(&catset); in cil_resolve_call1()
2856 rc = cil_fill_cats(pc, &catset->cats); in cil_resolve_call1()
2858 cil_destroy_catset(catset); in cil_resolve_call1()
2864 cat_node->data = catset; in cil_resolve_call1()
2865 cil_list_append(((struct cil_symtab_datum*)catset)->nodes, in cil_resolve_call1()
[all …]
Dcil_post.c1134 struct cil_catset *catset = (struct cil_catset *)datum; in __cil_cat_to_bitmap() local
1136 if (catset->cats->evaluated == CIL_FALSE) { in __cil_cat_to_bitmap()
1137 rc = __evaluate_cat_expression(catset->cats, db); in __cil_cat_to_bitmap()
1140 for (curr = catset->cats->datum_expr->head; curr; curr = curr->next) { in __cil_cat_to_bitmap()
1835 struct cil_catset *catset = node->data; in __cil_post_db_cat_helper() local
1836 rc = __evaluate_cat_expression(catset->cats, db); in __cil_post_db_cat_helper()
Dcil.c2256 void cil_catset_init(struct cil_catset **catset) in cil_catset_init() argument
2258 *catset = cil_malloc(sizeof(**catset)); in cil_catset_init()
2260 cil_symtab_datum_init(&(*catset)->datum); in cil_catset_init()
2261 (*catset)->cats = NULL; in cil_catset_init()
Dcil_tree.c1273 struct cil_catset *catset = node->data; in cil_tree_print_node() local
1275 cil_log(CIL_INFO, "CATSET: %s ",catset->datum.name); in cil_tree_print_node()
1277 cil_tree_print_cats(catset->cats); in cil_tree_print_node()
Dcil_build_ast.c3595 struct cil_catset *catset = NULL; in cil_gen_catset() local
3607 cil_catset_init(&catset); in cil_gen_catset()
3611 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)catset, (hashtab_key_t)key, CIL_SYM_CATS… in cil_gen_catset()
3616 rc = cil_fill_cats(parse_current->next->next, &catset->cats); in cil_gen_catset()
3625 cil_destroy_catset(catset); in cil_gen_catset()
3630 void cil_destroy_catset(struct cil_catset *catset) in cil_destroy_catset() argument
3632 if (catset == NULL) { in cil_destroy_catset()
3636 cil_symtab_datum_destroy(&catset->datum); in cil_destroy_catset()
3638 cil_destroy_cats(catset->cats); in cil_destroy_catset()
3640 free(catset); in cil_destroy_catset()
Dcil_build_ast.h156 void cil_destroy_catset(struct cil_catset *catset);
Dcil_internal.h1029 void cil_catset_init(struct cil_catset **catset);
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c766 …CuAssertStrEquals(tc, (char*)((struct cil_senscat *)test_ast_node->data)->catset->cat_list_str->he… in test_cil_copy_senscat()
767 (char*)test_copy->catset->cat_list_str->head->data); in test_cil_copy_senscat()
768 …CuAssertStrEquals(tc, (char*)((struct cil_senscat *)test_ast_node->data)->catset->cat_list_str->he… in test_cil_copy_senscat()
769 (char*)test_copy->catset->cat_list_str->head->next->data); in test_cil_copy_senscat()