/external/selinux/libsepol/cil/src/ |
cil_fqn.h | 36 int cil_fqn_qualify(struct cil_tree_node *root_node);
|
cil_reset_ast.h | 6 int cil_reset_ast(struct cil_tree_node *current);
|
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_args); 40 int cil_resolve_classpermissionset(struct cil_tree_node *current, struct cil_classpermissionset *cps, void *extra_args); 41 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extra_args); 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...] |
cil_tree.h | 39 struct cil_tree_node *root; 42 struct cil_tree_node { struct 43 struct cil_tree_node *parent; 44 struct cil_tree_node *cl_head; //Head of child_list 45 struct cil_tree_node *cl_tail; //Tail of child_list 46 struct cil_tree_node *next; //Each element in the list points to the next element 53 struct cil_tree_node *cil_tree_get_next_path(struct cil_tree_node *node, char **path, int* is_cil); 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_level lvl, const char* msg, ...) [all...] |
cil_build_ast.h | 40 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_sym_index sflavor, enum cil_flavor nflavor); 41 int cil_parse_to_list(struct cil_tree_node *parse_cl_head, struct cil_list *ast_cl, enum cil_flavor flavor); 43 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint16_t is_abstract); 45 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 47 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 49 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) [all...] |
cil_find.h | 37 int cil_find_matching_avrule_in_ast(struct cil_tree_node *current, enum cil_flavor flavor, void *target, struct cil_list *matching, int match_self);
|
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_flavor); 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_args); 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, void *extra_args); 71 int __cil_pre_verify_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *finished, void *extra_args);
|
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 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct cil_tree_node *node);
|
cil_parser.c | 81 static void create_node(struct cil_tree_node **node, struct cil_tree_node *current, int line, int hll_line, void *value) 91 static void insert_node(struct cil_tree_node *node, struct cil_tree_node *current) 101 static int add_hll_linemark(struct cil_tree_node **current, int *hll_lineno, int *hll_expand, struct cil_stack *stack, char *path) 104 struct cil_tree_node *node; 181 static void add_cil_path(struct cil_tree_node **current, char *path) 183 struct cil_tree_node *node; 205 struct cil_tree_node *node = NULL; 206 struct cil_tree_node *current = NULL [all...] |
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 static struct cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_node *ast_node) 72 struct cil_tree_node *parent = ast_node->parent; 157 int cil_resolve_classperms(struct cil_tree_node *current, struct cil_classperms *cp, void *extra_args) 188 int cil_resolve_classperms_set(struct cil_tree_node *current, struct cil_classperms_set *cp_set, void *extra_args) 213 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extra_args) 238 int cil_resolve_classpermissionset(struct cil_tree_node *current, struct cil_classpermissionset *cps, void *extra_args [all...] |
cil_verify.c | 87 int __cil_verify_syntax(struct cil_tree_node *parse_current, enum cil_syntax s[], int len) 91 struct cil_tree_node *c = parse_current; 153 int cil_verify_expr_syntax(struct cil_tree_node *current, enum cil_flavor op, enum cil_flavor expr_flavor) 275 int cil_verify_constraint_expr_syntax(struct cil_tree_node *current, enum cil_flavor op) 377 int __cil_verify_ordered_node_helper(struct cil_tree_node *node, __attribute__((unused)) uint32_t *finished, void *extra_args) 413 int __cil_verify_ordered(struct cil_tree_node *current, enum cil_flavor flavor) 438 struct cil_tree_node *node = sid->datum.nodes->head->data; 595 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) 611 static int __cil_verify_user_pre_eval(struct cil_tree_node *node) 651 static int __cil_verify_user_post_eval(struct cil_db *db, struct cil_tree_node *node [all...] |
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) { 424 static int cil_write_perm(struct cil_tree_node *node, FILE *cil_out) { 433 static int cil_write_class(struct cil_tree_node *node, uint32_t *finished, 465 static int cil_write_classorder(struct cil_tree_node *node, FILE *cil_out) { 481 static int cil_write_classcommon(struct cil_tree_node *node, FILE *cil_out) { 488 static int cil_write_sid(struct cil_tree_node *node, FILE *cil_out) { 494 static int cil_write_sidcontext(struct cil_tree_node *node, FILE *cil_out) [all...] |
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) 61 struct cil_tree_node *curr; 85 int cil_gen_node(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_sym_index sflavor, enum cil_flavor nflavor) 110 struct cil_tree_node *node = datum->nodes->head->data; 142 void cil_clear_node(struct cil_tree_node *ast_node [all...] |
cil_fqn.c | 42 struct cil_tree_node *node; 77 struct cil_tree_node *node = NODE(datum); 130 int cil_fqn_qualify(struct cil_tree_node *root_node)
|
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_args) 205 static int __cil_attrib_convert_type(struct cil_tree_node *node, struct version_args *args) 234 static int __cil_attrib_swap_symtab_key(struct cil_tree_node *node, char *old_key, 328 static int cil_attrib_sidcontext(struct cil_tree_node *node, struct version_args *args) 346 static int cil_attrib_context(struct cil_tree_node *node, struct version_args *args) 353 static int cil_attrib_roletype(struct cil_tree_node *node, 374 static int cil_attrib_type(struct cil_tree_node *node, struct version_args *args) 396 static int cil_attrib_typepermissive(struct cil_tree_node *node, 409 static int cil_attrib_typeattribute(struct cil_tree_node *node, struct version_args *args [all...] |
cil_find.c | 47 enum cil_flavor f1 = ((struct cil_tree_node*)d1->nodes->head->data)->flavor; 48 enum cil_flavor f2 = ((struct cil_tree_node*)d2->nodes->head->data)->flavor; 84 enum cil_flavor f1 = ((struct cil_tree_node*)d1->nodes->head->data)->flavor; 85 enum cil_flavor f2 = ((struct cil_tree_node*)d2->nodes->head->data)->flavor; 121 struct cil_tree_node *n1 = s1->nodes->head->data; 294 int cil_find_matching_avrule(struct cil_tree_node *node, struct cil_avrule *avrule, struct cil_avrule *target, struct cil_list *matching, int match_self) 350 static int __cil_find_matching_avrule_in_ast(struct cil_tree_node *node, uint32_t *finished, void *extra_args) 374 int cil_find_matching_avrule_in_ast(struct cil_tree_node *current, enum cil_flavor flavor, void *target, struct cil_list *matching, int match_self)
|
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) 101 char *cil_tree_get_cil_path(struct cil_tree_node *node) 116 __attribute__((format (printf, 3, 4))) void cil_tree_log(struct cil_tree_node *node, enum cil_log_level lvl, const char* msg, ...) 170 void cil_tree_subtree_destroy(struct cil_tree_node *node) 176 void cil_tree_children_destroy(struct cil_tree_node *node) 178 struct cil_tree_node *start_node = node [all...] |
cil_binary.h | 266 int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node, hashtab_t filename_trans_table);
|
cil_post.c | 71 struct cil_tree_node *n = d->nodes->head->data; 330 static int __cil_post_db_count_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args) 432 static int __cil_post_db_array_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args) 629 struct cil_tree_node *node = datum->nodes->head->data; 681 struct cil_tree_node *node = datum->nodes->head->data; 729 struct cil_tree_node *node = datum->nodes->head->data; 880 struct cil_tree_node *node = datum->nodes->head->data; 927 struct cil_tree_node *n1 = d1->nodes->head->data; 928 struct cil_tree_node *n2 = d2->nodes->head->data; 1230 static int __cil_post_db_attr_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args [all...] |
/external/selinux/libsepol/cil/test/unit/ |
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, void *); 42 //int __cil_build_constrain_tree(struct cil_tree_node *parse_current, struct cil_tree_node *expr_root); 45 struct cil_tree_node *ast; 47 struct cil_tree_node *macro; 48 struct cil_tree_node *tifstack; 51 struct cil_args_build *gen_build_args(struct cil_tree_node *node, struct cil_db *db, struct cil_tree_node * macro, struct cil_tree_node *tifstack [all...] |
test_cil.c | 63 struct cil_tree_node *test_ast_node; 81 struct cil_tree_node *test_ast_node; 99 struct cil_tree_node *test_ast_node; 117 struct cil_tree_node *test_ast_node; 135 struct cil_tree_node *test_ast_node; 152 struct cil_tree_node *test_ast_node = NULL; 166 struct cil_tree_node *test_ast_node;
|
test_cil_symtab.c | 44 struct cil_tree_node *test_ast_node;
|
test_cil_list.c | 54 struct cil_tree_node *test_ast_node; 82 struct cil_tree_node *test_ast_node; 118 struct cil_tree_node *test_ast_node; 160 struct cil_tree_node *test_ast_node; 187 struct cil_tree_node *test_ast_node; 211 struct cil_tree_node *test_ast_node; 239 struct cil_tree_node *test_ast_node; 268 struct cil_tree_node *test_ast_node; 302 struct cil_tree_node *test_ast_node; 329 struct cil_tree_node *test_ast_node [all...] |
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) 150 struct cil_tree_node *test_ast_node; 161 struct cil_tree_node *test_copy; 177 struct cil_tree_node *test_ast_node; 186 struct cil_tree_node *new_tree_node; 194 struct cil_tree_node *test_copy; 218 struct cil_tree_node *test_ast_node; 229 struct cil_tree_node *test_copy [all...] |
test_cil_tree.c | 38 struct cil_tree_node *test_node;
|