/external/selinux/libsepol/cil/include/cil/ |
android.h | 13 * mdb - uninitialized cil_db reference to the resulting policy. Caller 15 * srcdb - initialized and parsed cil_db reference to source public policy. 19 int cil_android_attrib_mapping(struct cil_db **mdb, struct cil_db *srcdb, const char *num); 24 * tgtdb - initialized and parsed cil_db reference to modify. 25 * srcdb - initialized and parsed cil_db reference to source public policy 30 int cil_android_attributize(struct cil_db *tgtdb, struct cil_db *srcdb, const char *num);
|
cil_write_ast.h | 6 int cil_write_ast(struct cil_db *db, const char* path);
|
cil.h | 35 struct cil_db; 36 typedef struct cil_db cil_db_t; 53 extern void cil_set_attrs_expand_generated(struct cil_db *db, int attrs_expand_generated); 54 extern void cil_set_attrs_expand_size(struct cil_db *db, unsigned attrs_expand_size); 57 extern void cil_write_policy_conf(FILE *out, struct cil_db *db);
|
/external/selinux/libsepol/cil/src/ |
cil_policy.h | 35 void cil_gen_policy(FILE *out, struct cil_db *db);
|
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_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 | 506 int __cil_verify_levelrange_sensitivity(struct cil_db *db, struct cil_sens *low, struct cil_sens *high) 563 int __cil_verify_levelrange(struct cil_db *db, struct cil_levelrange *lr) 595 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) 651 static int __cil_verify_user_post_eval(struct cil_db *db, struct cil_tree_node *node) 732 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) 810 int __cil_verify_named_context(struct cil_db *db, struct cil_tree_node *node) 985 int __cil_verify_netifcon(struct cil_db *db, struct cil_tree_node *node) 1015 int __cil_verify_genfscon(struct cil_db *db, struct cil_tree_node *node) 1036 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 | 53 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db); 54 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db); 332 struct cil_db *db = extra_args; 434 struct cil_db *db = extra_args; 611 static int __evaluate_type_expression(struct cil_typeattribute *attr, struct cil_db *db) 626 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) 663 static int __evaluate_user_expression(struct cil_userattribute *attr, struct cil_db *db) 678 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) 711 static int __evaluate_role_expression(struct cil_roleattribute *attr, struct cil_db *db) 726 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) 152 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint16_t is_abstract) 207 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 251 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 295 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 341 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 408 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) 476 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) 518 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, u (…) [all...] |
cil.c | 241 void cil_db_init(struct cil_db **db) 294 void cil_db_destroy(struct cil_db **db) 378 int cil_compile(struct cil_db *db) 380 int cil_compile_nopdb(struct cil_db *db) 426 int cil_compile_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sepol_db) 466 void cil_write_policy_conf(FILE *out, struct cil_db *db) 1185 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size) 1187 int cil_userprefixes_to_string_nopdb(struct cil_db *db, char **out, size_t *size) [all...] |
cil_internal.h | 276 struct cil_db { struct 935 void cil_db_init(struct cil_db **db); 936 void cil_db_destroy(struct cil_db **db); 946 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size); 947 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size); 948 int cil_filecons_to_string(struct cil_db *db, char **out, size_t *size);
|
android.c | 16 struct cil_db *db; 22 struct cil_db *db; 141 int cil_extract_attributees(struct cil_db *db, hashtab_t vers_map) 754 static int cil_attributize(struct cil_db *db, hashtab_t vers_map, const char *num) 777 * Add these new typeattributeset nodes to the given cil_db. 819 static int cil_attrib_mapping(struct cil_db **db, hashtab_t vers_map, const char *num) 840 int cil_android_attrib_mapping(struct cil_db **mdb, struct cil_db *srcdb, const char *num) 870 int cil_android_attributize(struct cil_db *tgtdb, struct cil_db *srcdb, const char *num [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...] |
/system/sepolicy/tools/ |
version_policy.c | 30 static int read_cil_file(struct cil_db **db, char *path) { 92 struct cil_db *base_db = NULL; 93 struct cil_db *out_db = NULL;
|