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.c210 static void cil_reset_catset(struct cil_catset *catset) in cil_reset_catset() argument
212 cil_reset_cats(catset->cats); in cil_reset_catset()
Dcil_resolve_ast.h68 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args);
Dcil_post.c744 struct cil_catset *catset = (struct cil_catset *)datum; in __cil_cat_to_bitmap() local
746 if (catset->cats->evaluated == CIL_FALSE) { in __cil_cat_to_bitmap()
747 rc = __evaluate_cat_expression(catset->cats, db); in __cil_cat_to_bitmap()
750 for (curr = catset->cats->datum_expr->head; curr; curr = curr->next) { in __cil_cat_to_bitmap()
1181 struct cil_catset *catset = node->data; in __cil_post_db_cat_helper() local
1182 rc = __evaluate_cat_expression(catset->cats, db); in __cil_post_db_cat_helper()
Dcil_resolve_ast.c1468 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args) in cil_resolve_catset() argument
1472 rc = cil_resolve_cats(current, catset->cats, extra_args); in cil_resolve_catset()
1477 rc = cil_verify_no_self_reference((struct cil_symtab_datum *)catset, catset->cats->datum_expr); in cil_resolve_catset()
1479 cil_list_destroy(&catset->cats->datum_expr, CIL_FALSE); in cil_resolve_catset()
2478 struct cil_catset *catset = NULL; in cil_resolve_call1() local
2480 cil_catset_init(&catset); in cil_resolve_call1()
2481 rc = cil_fill_cats(pc, &catset->cats); in cil_resolve_call1()
2483 cil_destroy_catset(catset); in cil_resolve_call1()
2488 cat_node->data = catset; in cil_resolve_call1()
2489 cil_list_append(((struct cil_symtab_datum*)catset)->nodes, in cil_resolve_call1()
[all …]
Dcil.c2120 void cil_catset_init(struct cil_catset **catset) in cil_catset_init() argument
2122 *catset = cil_malloc(sizeof(**catset)); in cil_catset_init()
2124 cil_symtab_datum_init(&(*catset)->datum); in cil_catset_init()
2125 (*catset)->cats = NULL; in cil_catset_init()
Dcil_tree.c1154 struct cil_catset *catset = node->data; in cil_tree_print_node() local
1156 cil_log(CIL_INFO, "CATSET: %s ",catset->datum.name); in cil_tree_print_node()
1158 cil_tree_print_cats(catset->cats); in cil_tree_print_node()
Dcil_build_ast.c3213 struct cil_catset *catset = NULL; in cil_gen_catset() local
3225 cil_catset_init(&catset); in cil_gen_catset()
3229 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)catset, (hashtab_key_t)key, CIL_SYM_CATS… in cil_gen_catset()
3234 rc = cil_fill_cats(parse_current->next->next, &catset->cats); in cil_gen_catset()
3244 cil_destroy_catset(catset); in cil_gen_catset()
3249 void cil_destroy_catset(struct cil_catset *catset) in cil_destroy_catset() argument
3251 if (catset == NULL) { in cil_destroy_catset()
3255 cil_symtab_datum_destroy(&catset->datum); in cil_destroy_catset()
3257 cil_destroy_cats(catset->cats); in cil_destroy_catset()
3259 free(catset); in cil_destroy_catset()
Dcil_build_ast.h147 void cil_destroy_catset(struct cil_catset *catset);
Dcil_internal.h934 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()