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.c235 static void cil_reset_catset(struct cil_catset *catset) in cil_reset_catset() argument
237 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.c1591 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args) in cil_resolve_catset() argument
1595 rc = cil_resolve_cats(current, catset->cats, extra_args); in cil_resolve_catset()
1600 rc = cil_verify_no_self_reference((struct cil_symtab_datum *)catset, catset->cats->datum_expr); in cil_resolve_catset()
1602 cil_list_destroy(&catset->cats->datum_expr, CIL_FALSE); in cil_resolve_catset()
2758 struct cil_catset *catset = NULL; in cil_resolve_call1() local
2760 cil_catset_init(&catset); in cil_resolve_call1()
2761 rc = cil_fill_cats(pc, &catset->cats); in cil_resolve_call1()
2763 cil_destroy_catset(catset); in cil_resolve_call1()
2768 cat_node->data = catset; in cil_resolve_call1()
2769 cil_list_append(((struct cil_symtab_datum*)catset)->nodes, in cil_resolve_call1()
[all …]
Dcil_post.c889 struct cil_catset *catset = (struct cil_catset *)datum; in __cil_cat_to_bitmap() local
891 if (catset->cats->evaluated == CIL_FALSE) { in __cil_cat_to_bitmap()
892 rc = __evaluate_cat_expression(catset->cats, db); in __cil_cat_to_bitmap()
895 for (curr = catset->cats->datum_expr->head; curr; curr = curr->next) { in __cil_cat_to_bitmap()
1495 struct cil_catset *catset = node->data; in __cil_post_db_cat_helper() local
1496 rc = __evaluate_cat_expression(catset->cats, db); in __cil_post_db_cat_helper()
Dcil.c2180 void cil_catset_init(struct cil_catset **catset) in cil_catset_init() argument
2182 *catset = cil_malloc(sizeof(**catset)); in cil_catset_init()
2184 cil_symtab_datum_init(&(*catset)->datum); in cil_catset_init()
2185 (*catset)->cats = NULL; in cil_catset_init()
Dcil_tree.c1172 struct cil_catset *catset = node->data; in cil_tree_print_node() local
1174 cil_log(CIL_INFO, "CATSET: %s ",catset->datum.name); in cil_tree_print_node()
1176 cil_tree_print_cats(catset->cats); in cil_tree_print_node()
Dcil_build_ast.c3526 struct cil_catset *catset = NULL; in cil_gen_catset() local
3538 cil_catset_init(&catset); in cil_gen_catset()
3542 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)catset, (hashtab_key_t)key, CIL_SYM_CATS… in cil_gen_catset()
3547 rc = cil_fill_cats(parse_current->next->next, &catset->cats); in cil_gen_catset()
3557 cil_destroy_catset(catset); in cil_gen_catset()
3562 void cil_destroy_catset(struct cil_catset *catset) in cil_destroy_catset() argument
3564 if (catset == NULL) { in cil_destroy_catset()
3568 cil_symtab_datum_destroy(&catset->datum); in cil_destroy_catset()
3570 cil_destroy_cats(catset->cats); in cil_destroy_catset()
3572 free(catset); in cil_destroy_catset()
Dcil_build_ast.h154 void cil_destroy_catset(struct cil_catset *catset);
Dcil_internal.h979 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()