/external/selinux/libsepol/cil/src/ |
D | 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, sy… [all …]
|
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,… 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 int 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 … 65 int cil_gen_classpermission(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree… [all …]
|
D | 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… 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_r… 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); [all …]
|
D | 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__… in cil_copy_node() 98 int cil_copy_block(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sy… in cil_copy_block() 116 int cil_copy_blockabstract(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __at… in cil_copy_blockabstract() 130 int cil_copy_blockinherit(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __att… in cil_copy_blockinherit() 145 int cil_copy_policycap(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t… in cil_copy_policycap() 163 int cil_copy_perm(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sym… in cil_copy_perm() 216 int cil_copy_classmapping(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __att… in cil_copy_classmapping() 233 int cil_copy_class(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sy… in cil_copy_class() 255 int cil_copy_classorder(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attri… in cil_copy_classorder() [all …]
|
D | cil_post.c | 53 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db); 54 … __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db); 553 struct cil_db *db = extra_args; in __cil_post_db_count_helper() 661 struct cil_db *db = extra_args; in __cil_post_db_array_helper() 860 static int __evaluate_type_expression(struct cil_typeattribute *attr, struct cil_db *db) in __evaluate_type_expression() 875 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap() 912 static int __evaluate_user_expression(struct cil_userattribute *attr, struct cil_db *db) in __evaluate_user_expression() 927 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_user_to_bitmap() 960 static int __evaluate_role_expression(struct cil_roleattribute *attr, struct cil_db *db) in __evaluate_role_expression() 975 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap() [all …]
|
D | cil_verify.c | 508 int __cil_verify_levelrange_sensitivity(struct cil_db *db, struct cil_sens *low, struct cil_sens *h… in __cil_verify_levelrange_sensitivity() 565 int __cil_verify_levelrange(struct cil_db *db, struct cil_levelrange *lr) in __cil_verify_levelrange() 597 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_levelrange() 653 static int __cil_verify_user_post_eval(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_user_post_eval() 734 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) in __cil_verify_context() 812 int __cil_verify_named_context(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_context() 987 int __cil_verify_netifcon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_netifcon() 1017 int __cil_verify_ibendportcon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_ibendportcon() 1037 int __cil_verify_genfscon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_genfscon() 1058 int __cil_verify_filecon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_filecon() [all …]
|
D | cil_post.h | 49 int cil_post_context_sort(struct cil_db *db); 51 int cil_post_process(struct cil_db *db);
|
D | cil_build_ast.c | 51 struct cil_db *db; 107 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… in cil_gen_node() 186 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast… in cil_gen_block() 241 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_no… in cil_gen_blockinherit() 285 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_n… in cil_gen_blockabstract() 329 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_no… in cil_gen_in() 375 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast… in cil_gen_class() 442 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node… in cil_gen_classorder() 510 int cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_… in cil_gen_perm() 552 int cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node … in cil_gen_perm_nodes() [all …]
|
D | android.c | 16 struct cil_db *db; 22 struct cil_db *db; 142 int cil_extract_attributees(struct cil_db *db, hashtab_t vers_map) in cil_extract_attributees() 754 static int cil_attributize(struct cil_db *db, hashtab_t vers_map, const char *num) in cil_attributize() 848 static int cil_attrib_mapping(struct cil_db **db, hashtab_t vers_map, const char *num) in cil_attrib_mapping() 869 int cil_android_attrib_mapping(struct cil_db **mdb, struct cil_db *srcdb, const char *num) in cil_android_attrib_mapping() 899 int cil_android_attributize(struct cil_db *tgtdb, struct cil_db *srcdb, const char *num) in cil_android_attributize()
|
D | cil.c | 408 void cil_db_init(struct cil_db **db) in cil_db_init() 463 void cil_db_destroy(struct cil_db **db) in cil_db_destroy() 549 int cil_compile(struct cil_db *db) in cil_compile() 551 int cil_compile_nopdb(struct cil_db *db) in cil_compile() 597 int cil_compile_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sepol_db) in cil_compile_pdb() 637 void cil_write_policy_conf(FILE *out, struct cil_db *db) in cil_write_policy_conf() 1371 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size) in cil_userprefixes_to_string() 1373 int cil_userprefixes_to_string_nopdb(struct cil_db *db, char **out, size_t *size) in cil_userprefixes_to_string() 1420 int cil_userprefixes_to_string_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sep… in cil_userprefixes_to_string_pdb() 1614 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size) in cil_selinuxusers_to_string() [all …]
|
D | cil_binary.c | 67 const struct cil_db *db; 77 const struct cil_db *db; 291 int cil_classorder_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_class *class_va… in cil_classorder_to_policydb() 426 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) in cil_roletype_to_policydb() 624 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *db, struct cil_typeattribute … in cil_typeattribute_to_bitmap() 728 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_user *user) in cil_userrole_to_policydb() 792 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_catorder_to_policydb() 851 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_sensitivityorder_to_policydb() 1070 int __cil_type_rule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_ru… in __cil_type_rule_to_avtab() 1122 int cil_type_rule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_r… in cil_type_rule_to_policydb() [all …]
|
D | cil_internal.h | 281 struct cil_db { struct 968 void cil_db_init(struct cil_db **db); 969 void cil_db_destroy(struct cil_db **db); 979 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size); 980 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size); 981 int cil_filecons_to_string(struct cil_db *db, char **out, size_t *size);
|
D | cil_policy.h | 35 void cil_gen_policy(FILE *out, struct cil_db *db);
|
D | cil_verify.h | 50 struct cil_db *db;
|
/external/selinux/libsepol/cil/test/unit/ |
D | 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_tre… in gen_build_args() 215 struct cil_db *test_db; in test_cil_gen_block() 237 struct cil_db *test_db; in test_cil_gen_block_justblock_neg() 256 struct cil_db *test_db; in test_cil_gen_block_noname_neg() 275 struct cil_db *test_db = NULL; in test_cil_gen_block_dbnull_neg() 292 struct cil_db *test_db; in test_cil_gen_block_treenull_neg() 310 struct cil_db *test_db; in test_cil_gen_block_nodenull_neg() 326 struct cil_db *test_db; in test_cil_gen_block_nodeparentnull_neg() 345 struct cil_db *test_db; in test_cil_destroy_block() [all …]
|
D | 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) in gen_copy_args() 153 struct cil_db *test_db; in test_cil_copy_block() 180 struct cil_db *test_db; in test_cil_copy_perm() 221 struct cil_db *test_db; in test_cil_copy_class() 248 struct cil_db *test_db; in test_cil_copy_common() 275 struct cil_db *test_db; in test_cil_copy_classcommon() 313 struct cil_db *test_db; in test_cil_copy_sid() 340 struct cil_db *test_db; in test_cil_copy_sidcontext() 369 struct cil_db *test_db; in test_cil_copy_user() [all …]
|
D | 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,… in gen_resolve_args() 74 struct cil_db *test_db; in test_cil_resolve_name() 98 struct cil_db *test_db; in test_cil_resolve_name_invalid_type_neg() 115 struct cil_db *test_db; in test_cil_resolve_ast_curr_null_neg() 137 struct cil_db *test_db; in test_cil_resolve_roleallow() 156 struct cil_db *test_db; in test_cil_resolve_roleallow_srcdecl_neg() 176 struct cil_db *test_db; in test_cil_resolve_roleallow_tgtdecl_neg() 196 struct cil_db *test_db; in test_cil_resolve_classmapping_anon() 218 struct cil_db *test_db; in test_cil_resolve_classmapping_anon_inmacro() [all …]
|
D | test_cil.c | 39 struct cil_db *test_new_db; in test_cil_symtab_array_init() 49 struct cil_db *test_db; in test_cil_db_init() 66 struct cil_db *test_db; in test_cil_get_symtab_block() 84 struct cil_db *test_db; in test_cil_get_symtab_class() 102 struct cil_db *test_db; in test_cil_get_symtab_root() 120 struct cil_db *test_db; in test_cil_get_symtab_flavor_neg() 138 struct cil_db *test_db; in test_cil_get_symtab_null_neg() 154 struct cil_db *test_db; in test_cil_get_symtab_node_null_neg() 169 struct cil_db *test_db; in test_cil_get_symtab_parent_null_neg()
|
D | test_cil_list.c | 57 struct cil_db *test_db; in test_cil_list_append_item() 85 struct cil_db *test_db; in test_cil_list_append_item_append() 121 struct cil_db *test_db; in test_cil_list_append_item_append_extra() 163 struct cil_db *test_db; in test_cil_list_append_item_listnull_neg() 190 struct cil_db *test_db; in test_cil_list_append_item_itemnull_neg() 214 struct cil_db *test_db; in test_cil_list_prepend_item() 242 struct cil_db *test_db; in test_cil_list_prepend_item_prepend() 271 struct cil_db *test_db; in test_cil_list_prepend_item_prepend_neg() 305 struct cil_db *test_db; in test_cil_list_prepend_item_listnull_neg() 332 struct cil_db *test_db; in test_cil_list_prepend_item_itemnull_neg()
|
D | test_cil_fqn.c | 52 struct cil_db *test_db; in test_cil_qualify_name() 68 struct cil_db *test_db; in test_cil_qualify_name_cil_flavor()
|
D | test_cil_parser.c | 47 struct cil_db *test_db; in test_cil_parser()
|
D | test_cil_symtab.c | 47 struct cil_db *test_db; in test_cil_symtab_insert()
|
/external/selinux/libsepol/cil/include/cil/ |
D | android.h | 19 int cil_android_attrib_mapping(struct cil_db **mdb, struct cil_db *srcdb, const char *num); 32 int cil_android_attributize(struct cil_db *tgtdb, struct cil_db *srcdb, const char *num);
|
D | cil.h | 39 struct cil_db; 40 typedef struct cil_db cil_db_t; 58 extern void cil_set_attrs_expand_generated(struct cil_db *db, int attrs_expand_generated); 59 extern void cil_set_attrs_expand_size(struct cil_db *db, unsigned attrs_expand_size); 62 extern void cil_write_policy_conf(FILE *out, struct cil_db *db);
|
D | cil_write_ast.h | 6 int cil_write_ast(struct cil_db *db, const char* path);
|