/external/selinux/libsepol/cil/src/ |
D | cil_build_ast.h | 40 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… 41 int cil_parse_to_list(struct cil_tree_node *parse_cl_head, struct cil_list *ast_cl, enum cil_flavor… 43 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast… 45 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_no… 47 …nt cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_n… 49 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_no… 51 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast… 53 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node… 55 int cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_… 57 int cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node … [all …]
|
D | cil_resolve_ast.h | 38 int cil_resolve_classorder(struct cil_tree_node *current, void *extra_args); 39 int cil_resolve_classperms(struct cil_tree_node *current, struct cil_classperms *cp, void *extra_ar… 40 int cil_resolve_classpermissionset(struct cil_tree_node *current, struct cil_classpermissionset *cp… 41 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extr… 42 int cil_resolve_avrule(struct cil_tree_node *current, void *extra_args); 43 int cil_resolve_type_rule(struct cil_tree_node *current, void *extra_args); 44 int cil_resolve_typeattributeset(struct cil_tree_node *current, void *extra_args); 45 int cil_resolve_typealias(struct cil_tree_node *current, void *extra_args); 46 int cil_resolve_typebounds(struct cil_tree_node *current, void *extra_args); 47 int cil_resolve_typepermissive(struct cil_tree_node *current, void *extra_args); [all …]
|
D | cil_tree.h | 39 struct cil_tree_node *root; 42 struct cil_tree_node { struct 43 struct cil_tree_node *parent; argument 44 struct cil_tree_node *cl_head; //Head of child_list argument 45 struct cil_tree_node *cl_tail; //Tail of child_list argument 46 struct cil_tree_node *next; //Each element in the list points to the next element argument 53 struct cil_tree_node *cil_tree_get_next_path(struct cil_tree_node *node, char **path, int* is_cil); argument 54 char *cil_tree_get_cil_path(struct cil_tree_node *node); 55 __attribute__((format (printf, 3, 4))) void cil_tree_log(struct cil_tree_node *node, enum cil_log_l… 59 void cil_tree_subtree_destroy(struct cil_tree_node *node); [all …]
|
D | cil_verify.h | 60 int __cil_verify_syntax(struct cil_tree_node *parse_current, enum cil_syntax s[], int len); 61 int cil_verify_expr_syntax(struct cil_tree_node *current, enum cil_flavor op, enum cil_flavor expr_… 63 int cil_verify_constraint_expr_syntax(struct cil_tree_node *current, enum cil_flavor op); 66 int __cil_verify_ordered_node_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_ar… 67 int __cil_verify_ordered(struct cil_tree_node *current, enum cil_flavor flavor); 70 int __cil_verify_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *finished, voi… 71 int __cil_pre_verify_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *finished,…
|
D | cil_build_ast.c | 50 struct cil_tree_node *ast; 52 struct cil_tree_node *macro; 53 struct cil_tree_node *boolif; 54 struct cil_tree_node *tunif; 55 struct cil_tree_node *in; 58 int cil_fill_list(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **list) in cil_fill_list() 61 struct cil_tree_node *curr; in cil_fill_list() 107 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… in cil_gen_node() 138 struct cil_tree_node *node = datum->nodes->head->data; in cil_gen_node() 176 void cil_clear_node(struct cil_tree_node *ast_node) in cil_clear_node() [all …]
|
D | cil_resolve_ast.c | 55 struct cil_tree_node *optstack; 56 struct cil_tree_node *boolif; 57 struct cil_tree_node *macro; 58 struct cil_tree_node *blockstack; 67 … cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_node *ast_node) in __cil_insert_name() 72 struct cil_tree_node *parent = ast_node->parent; in __cil_insert_name() 153 int cil_resolve_classperms(struct cil_tree_node *current, struct cil_classperms *cp, void *extra_ar… in cil_resolve_classperms() 184 int cil_resolve_classperms_set(struct cil_tree_node *current, struct cil_classperms_set *cp_set, vo… in cil_resolve_classperms_set() 209 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extr… in cil_resolve_classperms_list() 234 int cil_resolve_classpermissionset(struct cil_tree_node *current, struct cil_classpermissionset *cp… in cil_resolve_classpermissionset() [all …]
|
D | cil_verify.c | 87 int __cil_verify_syntax(struct cil_tree_node *parse_current, enum cil_syntax s[], int len) in __cil_verify_syntax() 91 struct cil_tree_node *c = parse_current; in __cil_verify_syntax() 153 int cil_verify_expr_syntax(struct cil_tree_node *current, enum cil_flavor op, enum cil_flavor expr_… in cil_verify_expr_syntax() 278 int cil_verify_constraint_expr_syntax(struct cil_tree_node *current, enum cil_flavor op) in cil_verify_constraint_expr_syntax() 380 int __cil_verify_ordered_node_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *… in __cil_verify_ordered_node_helper() 416 int __cil_verify_ordered(struct cil_tree_node *current, enum cil_flavor flavor) in __cil_verify_ordered() 441 struct cil_tree_node *node = sid->datum.nodes->head->data; in __cil_verify_initsids() 597 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_levelrange() 613 static int __cil_verify_user_pre_eval(struct cil_tree_node *node) in __cil_verify_user_pre_eval() 653 static int __cil_verify_user_post_eval(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_user_post_eval() [all …]
|
D | cil_write_ast.c | 15 static int __cil_write_first_child_helper(struct cil_tree_node *node, void *extra_args); 16 static int __cil_write_node_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args… 17 static int __cil_write_last_child_helper(struct cil_tree_node *node, void *extra_args); 418 static int cil_write_policycap(struct cil_tree_node *node, FILE *cil_out) { in cil_write_policycap() 424 static int cil_write_perm(struct cil_tree_node *node, FILE *cil_out) { in cil_write_perm() 433 static int cil_write_class(struct cil_tree_node *node, uint32_t *finished, in cil_write_class() 465 static int cil_write_classorder(struct cil_tree_node *node, FILE *cil_out) { in cil_write_classorder() 481 static int cil_write_classcommon(struct cil_tree_node *node, FILE *cil_out) { in cil_write_classcommon() 488 static int cil_write_sid(struct cil_tree_node *node, FILE *cil_out) { in cil_write_sid() 494 static int cil_write_sidcontext(struct cil_tree_node *node, FILE *cil_out) { in cil_write_sidcontext() [all …]
|
D | cil_parser.c | 81 static void create_node(struct cil_tree_node **node, struct cil_tree_node *current, int line, int h… in create_node() 91 static void insert_node(struct cil_tree_node *node, struct cil_tree_node *current) in insert_node() 101 static int add_hll_linemark(struct cil_tree_node **current, int *hll_lineno, int *hll_expand, struc… in add_hll_linemark() 104 struct cil_tree_node *node; in add_hll_linemark() 181 static void add_cil_path(struct cil_tree_node **current, char *path) in add_cil_path() 183 struct cil_tree_node *node; in add_cil_path() 205 struct cil_tree_node *node = NULL; in cil_parser() 206 struct cil_tree_node *current = NULL; in cil_parser()
|
D | android.c | 17 struct cil_tree_node *ast_node; 74 static int __extract_attributees_helper(struct cil_tree_node *node, uint32_t *finished, void *extra… in __extract_attributees_helper() 205 static int __cil_attrib_convert_type(struct cil_tree_node *node, struct version_args *args) in __cil_attrib_convert_type() 210 struct cil_tree_node *new_ast_node = NULL; in __cil_attrib_convert_type() 238 static int __cil_attrib_swap_symtab_key(struct cil_tree_node *node, char *old_key, in __cil_attrib_swap_symtab_key() 332 static int cil_attrib_sidcontext(struct cil_tree_node *node, struct version_args *args) in cil_attrib_sidcontext() 350 static int cil_attrib_context(struct cil_tree_node *node, struct version_args *args) in cil_attrib_context() 357 static int cil_attrib_roletype(struct cil_tree_node *node, in cil_attrib_roletype() 378 static int cil_attrib_type(struct cil_tree_node *node, struct version_args *args) in cil_attrib_type() 400 static int cil_attrib_typepermissive(struct cil_tree_node *node, in cil_attrib_typepermissive() [all …]
|
D | cil_tree.c | 44 void cil_tree_print_perms_list(struct cil_tree_node *current_perm); 49 void cil_tree_print_expr_tree(struct cil_tree_node *expr_root); 51 void cil_tree_print_node(struct cil_tree_node *node); 62 struct cil_tree_node *cil_tree_get_next_path(struct cil_tree_node *node, char **path, int* is_cil) in cil_tree_get_next_path() 101 char *cil_tree_get_cil_path(struct cil_tree_node *node) in cil_tree_get_cil_path() 116 __attribute__((format (printf, 3, 4))) void cil_tree_log(struct cil_tree_node *node, enum cil_log_l… in cil_tree_log() 170 void cil_tree_subtree_destroy(struct cil_tree_node *node) in cil_tree_subtree_destroy() 176 void cil_tree_children_destroy(struct cil_tree_node *node) in cil_tree_children_destroy() 178 struct cil_tree_node *start_node = node; in cil_tree_children_destroy() 179 struct cil_tree_node *next = NULL; in cil_tree_children_destroy() [all …]
|
D | cil_symtab.h | 46 #define NODE(n) ((struct cil_tree_node *)(DATUM(n)->nodes->head->data)) 76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node); 77 …t(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct cil_tree_node *node);
|
D | cil_find.c | 47 enum cil_flavor f1 = ((struct cil_tree_node*)d1->nodes->head->data)->flavor; in cil_type_match_any() 48 enum cil_flavor f2 = ((struct cil_tree_node*)d2->nodes->head->data)->flavor; in cil_type_match_any() 84 enum cil_flavor f1 = ((struct cil_tree_node*)d1->nodes->head->data)->flavor; in cil_type_matches() 85 enum cil_flavor f2 = ((struct cil_tree_node*)d2->nodes->head->data)->flavor; in cil_type_matches() 121 struct cil_tree_node *n1 = s1->nodes->head->data; in cil_self_match_any() 294 int cil_find_matching_avrule(struct cil_tree_node *node, struct cil_avrule *avrule, struct cil_avru… in cil_find_matching_avrule() 350 static int __cil_find_matching_avrule_in_ast(struct cil_tree_node *node, uint32_t *finished, void *… in __cil_find_matching_avrule_in_ast() 374 int cil_find_matching_avrule_in_ast(struct cil_tree_node *current, enum cil_flavor flavor, void *ta… in cil_find_matching_avrule_in_ast()
|
D | cil_fqn.c | 42 struct cil_tree_node *node; 77 struct cil_tree_node *node = NODE(datum); in __cil_fqn_qualify_blocks() 130 int cil_fqn_qualify(struct cil_tree_node *root_node) in cil_fqn_qualify()
|
D | cil_post.c | 148 struct cil_tree_node *n = d->nodes->head->data; in cil_verify_is_list() 551 static int __cil_post_db_count_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_a… in __cil_post_db_count_helper() 659 static int __cil_post_db_array_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_a… in __cil_post_db_array_helper() 878 struct cil_tree_node *node = datum->nodes->head->data; in __cil_type_to_bitmap() 930 struct cil_tree_node *node = datum->nodes->head->data; in __cil_user_to_bitmap() 978 struct cil_tree_node *node = datum->nodes->head->data; in __cil_role_to_bitmap() 1129 struct cil_tree_node *node = datum->nodes->head->data; in __cil_cat_to_bitmap() 1176 struct cil_tree_node *n1 = d1->nodes->head->data; in __cil_cat_expr_range_to_bitmap_helper() 1177 struct cil_tree_node *n2 = d2->nodes->head->data; in __cil_cat_expr_range_to_bitmap_helper() 1499 static int __cil_post_db_neverallow_attr_helper(struct cil_tree_node *node, uint32_t *finished, __a… in __cil_post_db_neverallow_attr_helper() [all …]
|
D | cil_reset_ast.h | 6 int cil_reset_ast(struct cil_tree_node *current);
|
D | cil_fqn.h | 36 int cil_fqn_qualify(struct cil_tree_node *root_node);
|
D | cil_policy.c | 74 static int __cil_gather_statements_helper(struct cil_tree_node *node, uint32_t *finished, void *ext… in __cil_gather_statements_helper() 181 static void cil_gather_statements(struct cil_tree_node *start, struct cil_list *lists[]) in cil_gather_statements() 362 struct cil_tree_node *node = NODE(operand->data); in __cil_cons_leaf_operand_len() 372 struct cil_tree_node *node = NODE(operand->data); in __cil_cons_leaf_operand_len() 522 struct cil_tree_node *node = NODE(operand->data); in __cil_cons_leaf_operand_to_string() 537 struct cil_tree_node *node = NODE(operand->data); in __cil_cons_leaf_operand_to_string() 730 struct cil_tree_node *node; in cil_commons_to_policy() 731 struct cil_tree_node *perm; in cil_commons_to_policy() 751 struct cil_tree_node *node; in cil_classes_to_policy() 762 struct cil_tree_node *perm = node->cl_head; in cil_classes_to_policy() [all …]
|
D | cil_find.h | 37 int cil_find_matching_avrule_in_ast(struct cil_tree_node *current, enum cil_flavor flavor, void *ta…
|
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_build_ast.c | 40 int __cil_build_ast_node_helper(struct cil_tree_node *, uint32_t *, void *); 41 int __cil_build_ast_last_child_helper(__attribute__((unused)) struct cil_tree_node *parse_current, … 45 struct cil_tree_node *ast; 47 struct cil_tree_node *macro; 48 struct cil_tree_node *tifstack; 51 …s_build *gen_build_args(struct cil_tree_node *node, struct cil_db *db, struct cil_tree_node * macr… in gen_build_args() 69 struct cil_tree_node *test_current; in test_cil_parse_to_list() 100 struct cil_tree_node *test_current; in test_cil_parse_to_list_currnull_neg() 131 struct cil_tree_node *test_current; in test_cil_parse_to_list_listnull_neg() 212 struct cil_tree_node *test_ast_node; in test_cil_gen_block() [all …]
|
D | test_cil.c | 63 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_block() 81 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_class() 99 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_root() 117 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_flavor_neg() 135 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_null_neg() 152 struct cil_tree_node *test_ast_node = NULL; in test_cil_get_symtab_node_null_neg() 166 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_parent_null_neg()
|
D | test_cil_copy_ast.c | 40 int __cil_copy_node_helper(struct cil_tree_node *orig, uint32_t *finished, void *extra_args); 43 struct cil_tree_node *dest; 47 struct cil_args_copy *gen_copy_args(struct cil_tree_node *node, struct cil_db *db) in gen_copy_args() 150 struct cil_tree_node *test_ast_node; in test_cil_copy_block() 161 struct cil_tree_node *test_copy; in test_cil_copy_block() 177 struct cil_tree_node *test_ast_node; in test_cil_copy_perm() 186 struct cil_tree_node *new_tree_node; in test_cil_copy_perm() 194 struct cil_tree_node *test_copy; in test_cil_copy_perm() 218 struct cil_tree_node *test_ast_node; in test_cil_copy_class() 229 struct cil_tree_node *test_copy; in test_cil_copy_class() [all …]
|
D | test_cil_list.c | 54 struct cil_tree_node *test_ast_node; in test_cil_list_append_item() 82 struct cil_tree_node *test_ast_node; in test_cil_list_append_item_append() 118 struct cil_tree_node *test_ast_node; in test_cil_list_append_item_append_extra() 160 struct cil_tree_node *test_ast_node; in test_cil_list_append_item_listnull_neg() 187 struct cil_tree_node *test_ast_node; in test_cil_list_append_item_itemnull_neg() 211 struct cil_tree_node *test_ast_node; in test_cil_list_prepend_item() 239 struct cil_tree_node *test_ast_node; in test_cil_list_prepend_item_prepend() 268 struct cil_tree_node *test_ast_node; in test_cil_list_prepend_item_prepend_neg() 302 struct cil_tree_node *test_ast_node; in test_cil_list_prepend_item_listnull_neg() 329 struct cil_tree_node *test_ast_node; in test_cil_list_prepend_item_itemnull_neg()
|
D | test_cil_symtab.c | 44 struct cil_tree_node *test_ast_node; in test_cil_symtab_insert()
|
D | test_cil_tree.c | 38 struct cil_tree_node *test_node; in test_cil_tree_node_init()
|