/external/selinux/libsepol/cil/src/ |
cil_copy_ast.h | 38 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new); 40 int cil_copy_block(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 41 int cil_copy_blockabstract(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 42 int cil_copy_blockinherit(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 43 int cil_copy_perm(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 44 int cil_copy_class(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 45 int cil_copy_classorder(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 46 int cil_copy_classmapping(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 47 int cil_copy_permset(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 52 int cil_copy_classpermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) [all...] |
cil_binary.h | 47 int cil_binary_create(const struct cil_db *db, sepol_policydb_t **pdb); 63 int cil_binary_create_allocated_pdb(const struct cil_db *db, sepol_policydb_t *pdb); 105 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role); 162 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *cdb, struct cil_typeattribute *cil_attr); 193 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_user *user); 213 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db); 233 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db); 244 int cil_type_rule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule); 254 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule); 266 int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node, hashtab_t filename_trans_table) [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); 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); 51 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 53 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 55 int cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms); 57 int cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms); 65 int cil_gen_classpermission(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) [all...] |
cil_post.h | 47 int cil_post_context_sort(struct cil_db *db); 49 int cil_post_process(struct cil_db *db);
|
cil_policy.h | 45 int cil_gen_policy(struct cil_db *);
|
cil_copy_ast.c | 46 struct cil_db *db; 86 int cil_copy_node(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) 98 int cil_copy_block(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) 116 int cil_copy_blockabstract(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) 130 int cil_copy_blockinherit(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) 145 int cil_copy_policycap(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) 163 int cil_copy_perm(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) 216 int cil_copy_classmapping(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) 233 int cil_copy_class(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) 255 int cil_copy_classorder(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab [all...] |
cil_verify.h | 50 struct cil_db *db;
|
cil_verify.c | 500 int __cil_verify_levelrange_sensitivity(struct cil_db *db, struct cil_sens *low, struct cil_sens *high) 557 int __cil_verify_levelrange(struct cil_db *db, struct cil_levelrange *lr) 589 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) 645 static int __cil_verify_user_post_eval(struct cil_db *db, struct cil_tree_node *node) 726 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) 804 int __cil_verify_named_context(struct cil_db *db, struct cil_tree_node *node) 984 int __cil_verify_netifcon(struct cil_db *db, struct cil_tree_node *node) 1014 int __cil_verify_genfscon(struct cil_db *db, struct cil_tree_node *node) 1035 int __cil_verify_filecon(struct cil_db *db, struct cil_tree_node *node) 1062 int __cil_verify_nodecon(struct cil_db *db, struct cil_tree_node *node [all...] |
cil_post.c | 50 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db); 51 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db); 329 struct cil_db *db = extra_args; 431 struct cil_db *db = extra_args; 608 static int __evaluate_type_expression(struct cil_typeattribute *attr, struct cil_db *db) 623 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) 660 static int __evaluate_user_expression(struct cil_userattribute *attr, struct cil_db *db) 675 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) 708 static int __evaluate_role_expression(struct cil_roleattribute *attr, struct cil_db *db) 723 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db [all...] |
cil_build_ast.c | 51 struct cil_db *db; 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) 153 int cil_gen_block(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint16_t is_abstract) 209 int cil_gen_blockinherit(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 254 int cil_gen_blockabstract(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 299 int cil_gen_in(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 346 int cil_gen_class(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 409 int cil_gen_classorder(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 478 int cil_gen_perm(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms) 516 int cil_gen_perm_nodes(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node *ast_node, enum cil_flavor flavor, u (…) [all...] |
cil_internal.h | 270 struct cil_db { struct 918 void cil_db_init(struct cil_db **db); 919 void cil_db_destroy(struct cil_db **db); 929 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size); 930 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size); 931 int cil_filecons_to_string(struct cil_db *db, char **out, size_t *size);
|
cil.c | 237 void cil_db_init(struct cil_db **db) 288 void cil_db_destroy(struct cil_db **db) 372 int cil_compile(struct cil_db *db) 374 int cil_compile_nopdb(struct cil_db *db) 420 int cil_compile_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sepol_db) 1168 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size) 1170 int cil_userprefixes_to_string_nopdb(struct cil_db *db, char **out, size_t *size) 1217 int cil_userprefixes_to_string_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sepol_db, char **out, size_t *size) [all...] |
cil_binary.c | 62 const struct cil_db *db; 74 const struct cil_db *db; 289 int cil_classorder_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_class *class_value_to_cil[], struct cil_perm **perm_value_to_cil[]) 424 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) 622 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *db, struct cil_typeattribute *cil_attr) 728 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_user *user) 790 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db) 850 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db) 1055 int __cil_type_rule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule, cond_node_t *cond_node, enum cil_flavor cond_flavor) 1111 int cil_type_rule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule [all...] |
cil_resolve_ast.h | 98 int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current);
|
cil_resolve_ast.c | 51 struct cil_db *db; 67 static struct cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_node *ast_node) 296 struct cil_db *db = NULL; [all...] |
/external/selinux/libsepol/cil/test/unit/ |
test_cil.c | 39 struct cil_db *test_new_db; 49 struct cil_db *test_db; 66 struct cil_db *test_db; 84 struct cil_db *test_db; 102 struct cil_db *test_db; 120 struct cil_db *test_db; 138 struct cil_db *test_db; 154 struct cil_db *test_db; 169 struct cil_db *test_db;
|
test_cil_fqn.c | 52 struct cil_db *test_db; 68 struct cil_db *test_db;
|
test_cil_parser.c | 47 struct cil_db *test_db;
|
test_cil_build_ast.c | 46 struct cil_db *db; 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) 215 struct cil_db *test_db; 237 struct cil_db *test_db; 256 struct cil_db *test_db; 275 struct cil_db *test_db = NULL; 292 struct cil_db *test_db; 310 struct cil_db *test_db; 326 struct cil_db *test_db; 345 struct cil_db *test_db [all...] |
test_cil_symtab.c | 47 struct cil_db *test_db;
|
test_cil_copy_ast.c | 44 struct cil_db *db; 47 struct cil_args_copy *gen_copy_args(struct cil_tree_node *node, struct cil_db *db) 153 struct cil_db *test_db; 180 struct cil_db *test_db; 221 struct cil_db *test_db; 248 struct cil_db *test_db; 275 struct cil_db *test_db; 313 struct cil_db *test_db; 340 struct cil_db *test_db; 369 struct cil_db *test_db [all...] |
test_cil_list.c | 57 struct cil_db *test_db; 85 struct cil_db *test_db; 121 struct cil_db *test_db; 163 struct cil_db *test_db; 190 struct cil_db *test_db; 214 struct cil_db *test_db; 242 struct cil_db *test_db; 271 struct cil_db *test_db; 305 struct cil_db *test_db; 332 struct cil_db *test_db [all...] |
test_cil_resolve_ast.c | 45 struct cil_db *db; 53 struct cil_args_resolve *gen_resolve_args(struct cil_db *db, enum cil_pass pass, uint32_t *changed, struct cil_tree_node *calls, struct cil_tree_node *opts, struct cil_tree_node *macro) 74 struct cil_db *test_db; 98 struct cil_db *test_db; 115 struct cil_db *test_db; 137 struct cil_db *test_db; 156 struct cil_db *test_db; 176 struct cil_db *test_db; 196 struct cil_db *test_db; 218 struct cil_db *test_db [all...] |
/external/selinux/libsepol/cil/include/cil/ |
cil.h | 35 struct cil_db; 36 typedef struct cil_db cil_db_t;
|
/external/selinux/secilc/ |
secilc.c | 85 struct cil_db *db = NULL;
|