Home
last modified time | relevance | path

Searched refs:cil_db (Results 1 – 25 of 28) sorted by relevance

12

/external/selinux/libsepol/cil/src/
Dcil_copy_ast.h38 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 …]
Dcil_build_ast.h40 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 …]
Dcil_binary.h47 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…
192 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_userrole *userrol…
212 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db);
232 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db);
243 int cil_type_rule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_r…
253 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule,…
265 int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node,…
[all …]
Dcil_copy_ast.c46 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 …]
Dcil_post.c50 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db);
51 … __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; in __cil_post_db_count_helper()
406 struct cil_db *db = extra_args; in __cil_post_db_array_helper()
575 static int __evaluate_type_expression(struct cil_typeattribute *attr, struct cil_db *db) in __evaluate_type_expression()
590 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap()
627 static int __evaluate_role_expression(struct cil_roleattribute *attr, struct cil_db *db) in __evaluate_role_expression()
642 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap()
671 …itmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((unused)) struct cil_db *db) in __cil_perm_to_bitmap()
686 static int __evaluate_cat_expression(struct cil_cats *cats, struct cil_db *db) in __evaluate_cat_expression()
[all …]
Dcil_verify.c499 int __cil_verify_levelrange_sensitivity(struct cil_db *db, struct cil_sens *low, struct cil_sens *h… in __cil_verify_levelrange_sensitivity()
556 int __cil_verify_levelrange(struct cil_db *db, struct cil_levelrange *lr) in __cil_verify_levelrange()
588 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_levelrange()
604 int __cil_verify_user(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_user()
714 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) in __cil_verify_context()
800 int __cil_verify_named_context(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_context()
980 int __cil_verify_netifcon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_netifcon()
1010 int __cil_verify_genfscon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_genfscon()
1031 int __cil_verify_filecon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_filecon()
1058 int __cil_verify_nodecon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_nodecon()
[all …]
Dcil_post.h47 int cil_post_context_sort(struct cil_db *db);
49 int cil_post_process(struct cil_db *db);
Dcil_build_ast.c51 struct cil_db *db;
85 int cil_gen_node(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *ast_node, struct … in cil_gen_node()
153 int cil_gen_block(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, s… in cil_gen_block()
209 int cil_gen_blockinherit(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_cur… in cil_gen_blockinherit()
254 int cil_gen_blockabstract(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_cu… in cil_gen_blockabstract()
299 int cil_gen_in(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, stru… in cil_gen_in()
346 int cil_gen_class(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, s… in cil_gen_class()
404 int cil_gen_classorder(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_curre… in cil_gen_classorder()
455 int cil_gen_perm(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, st… in cil_gen_perm()
493 int cil_gen_perm_nodes(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *current_per… in cil_gen_perm_nodes()
[all …]
Dcil_verify.h50 struct cil_db *db;
71 int cil_verify_no_classperms_loop(struct cil_db *db);
Dcil.c228 void cil_db_init(struct cil_db **db) in cil_db_init()
276 void cil_db_destroy(struct cil_db **db) in cil_db_destroy()
359 int cil_compile(struct cil_db *db) in cil_compile()
361 int cil_compile_nopdb(struct cil_db *db) in cil_compile()
407 int cil_compile_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sepol_db) in cil_compile_pdb()
1121 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size) in cil_userprefixes_to_string()
1123 int cil_userprefixes_to_string_nopdb(struct cil_db *db, char **out, size_t *size) in cil_userprefixes_to_string()
1170 int cil_userprefixes_to_string_pdb(struct cil_db *db, __attribute__((unused)) sepol_policydb_t *sep… in cil_userprefixes_to_string_pdb()
1362 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size) in cil_selinuxusers_to_string()
1364 int cil_selinuxusers_to_string_nopdb(struct cil_db *db, char **out, size_t *size) in cil_selinuxusers_to_string()
[all …]
Dcil_internal.h260 struct cil_db { struct
874 void cil_db_init(struct cil_db **db);
875 void cil_db_destroy(struct cil_db **db);
885 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size);
886 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size);
887 int cil_filecons_to_string(struct cil_db *db, char **out, size_t *size);
Dcil_binary.c57 const struct cil_db *db;
67 const struct cil_db *db;
333 int cil_classorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_classorder_to_policydb()
460 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) in cil_roletype_to_policydb()
647 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *db, struct cil_typeattribute … in cil_typeattribute_to_bitmap()
752 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_userrole *userrol… in cil_userrole_to_policydb()
816 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_catorder_to_policydb()
876 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_sensitivityorder_to_policydb()
1081 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()
1137 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 …]
Dcil_policy.h45 int cil_gen_policy(struct cil_db *);
Dcil_resolve_ast.h97 int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current);
Dcil_resolve_ast.c51 struct cil_db *db;
65 static struct cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_no… in __cil_insert_name()
277 struct cil_db *db = NULL; in cil_resolve_avrule()
1362 void cil_set_cat_values(struct cil_list *ordered_cats, struct cil_db *db) in cil_set_cat_values()
2101 struct cil_db *db = NULL; in cil_resolve_blockinherit_copy()
2163 struct cil_db *db = NULL; in cil_resolve_in()
2393 struct cil_db *db = NULL; in cil_resolve_call1()
2913 struct cil_db *db = NULL; in cil_resolve_tunif()
3422 int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current) in cil_resolve_ast()
3551 static int __cil_resolve_name_with_root(struct cil_db *db, char *name, enum cil_sym_index sym_index… in __cil_resolve_name_with_root()
[all …]
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c46 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 …]
Dtest_cil_copy_ast.c44 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 …]
Dtest_cil_resolve_ast.c45 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 …]
Dtest_cil.c39 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()
Dtest_cil_list.c57 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()
Dtest_cil_fqn.c52 struct cil_db *test_db; in test_cil_qualify_name()
68 struct cil_db *test_db; in test_cil_qualify_name_cil_flavor()
Dtest_cil_parser.c47 struct cil_db *test_db; in test_cil_parser()
Dtest_cil_symtab.c47 struct cil_db *test_db; in test_cil_symtab_insert()
/external/selinux/libsepol/cil/include/cil/
Dcil.h35 struct cil_db;
36 typedef struct cil_db cil_db_t;
/external/selinux/secilc/
Dsecilc.c85 struct cil_db *db = NULL; in main()

12