Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/test/integration_testing/
Dmls_policy.cil11 (categoryset catset (c0 c2 c3))
32 (level low (s0 catset))
/third_party/selinux/libsepol/cil/src/
Dcil_resolve_ast.h69 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args);
Dcil_reset_ast.c257 static void cil_reset_catset(struct cil_catset *catset) in cil_reset_catset() argument
259 cil_reset_cats(catset->cats); in cil_reset_catset()
Dcil_resolve_ast.c1680 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args) in cil_resolve_catset() argument
1682 return cil_resolve_cats(current, catset->cats, extra_args); in cil_resolve_catset()
2848 struct cil_catset *catset = NULL; in cil_build_call_args() local
2850 cil_catset_init(&catset); in cil_build_call_args()
2851 rc = cil_fill_cats(arg_node, &catset->cats); in cil_build_call_args()
2853 cil_destroy_catset(catset); in cil_build_call_args()
2859 cat_node->data = catset; in cil_build_call_args()
2860 cil_list_append(((struct cil_symtab_datum*)catset)->nodes, in cil_build_call_args()
2862 arg->arg = (struct cil_symtab_datum*)catset; in cil_build_call_args()
3293 struct cil_catset *catset = (struct cil_catset *)res_datum; in cil_resolve_expr() local
[all …]
Dcil_write_ast.c423 struct cil_catset *catset = (struct cil_catset *)arg->arg; in write_call_args() local
424 write_cats(out, catset->cats); in write_call_args()
884 struct cil_catset *catset = node->data; in cil_write_ast_node() local
885 fprintf(out, "(categoryset %s ", datum_to_str(DATUM(catset))); in cil_write_ast_node()
886 write_cats(out, catset->cats); in cil_write_ast_node()
Dcil_post.c1148 struct cil_catset *catset = (struct cil_catset *)datum; in __cil_cat_to_bitmap() local
1150 if (catset->cats->evaluated == CIL_FALSE) { in __cil_cat_to_bitmap()
1151 rc = __evaluate_cat_expression(catset->cats, db); in __cil_cat_to_bitmap()
1154 for (curr = catset->cats->datum_expr->head; curr; curr = curr->next) { in __cil_cat_to_bitmap()
1845 struct cil_catset *catset = node->data; in __cil_post_db_cat_helper() local
1846 rc = __evaluate_cat_expression(catset->cats, db); in __cil_post_db_cat_helper()
Dcil.c2512 void cil_catset_init(struct cil_catset **catset) in cil_catset_init() argument
2514 *catset = cil_malloc(sizeof(**catset)); in cil_catset_init()
2516 cil_symtab_datum_init(&(*catset)->datum); in cil_catset_init()
2517 (*catset)->cats = NULL; in cil_catset_init()
Dcil_build_ast.c3596 struct cil_catset *catset = NULL; in cil_gen_catset() local
3608 cil_catset_init(&catset); in cil_gen_catset()
3612 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)catset, (hashtab_key_t)key, CIL_SYM_CATS… in cil_gen_catset()
3617 rc = cil_fill_cats(parse_current->next->next, &catset->cats); in cil_gen_catset()
3626 cil_destroy_catset(catset); in cil_gen_catset()
3631 void cil_destroy_catset(struct cil_catset *catset) in cil_destroy_catset() argument
3633 if (catset == NULL) { in cil_destroy_catset()
3637 cil_symtab_datum_destroy(&catset->datum); in cil_destroy_catset()
3639 cil_destroy_cats(catset->cats); in cil_destroy_catset()
3641 free(catset); in cil_destroy_catset()
Dcil_build_ast.h158 void cil_destroy_catset(struct cil_catset *catset);
Dcil_internal.h1043 void cil_catset_init(struct cil_catset **catset);
/third_party/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()