Home
last modified time | relevance | path

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

12

/third_party/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_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t key, struct cil_symta…
42 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,…
45 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast…
47 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_no…
49 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_n…
51 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_no…
53 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast…
55 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node…
57 int cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_…
59 int cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node …
[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…
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 …]
Dcil_copy_ast.c48 struct cil_db *db;
88 int cil_copy_node(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attribute__… in cil_copy_node()
100 int cil_copy_block(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sy… in cil_copy_block()
125 int cil_copy_blockabstract(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __at… in cil_copy_blockabstract()
139 int cil_copy_blockinherit(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __att… in cil_copy_blockinherit()
154 int cil_copy_policycap(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t… in cil_copy_policycap()
172 int cil_copy_perm(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sym… in cil_copy_perm()
225 int cil_copy_classmapping(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __att… in cil_copy_classmapping()
242 int cil_copy_class(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sy… in cil_copy_class()
264 int cil_copy_classorder(__attribute__((unused)) struct cil_db *db, void *data, void **copy, __attri… in cil_copy_classorder()
[all …]
Dcil_post.c60 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db);
61 … __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db);
567 struct cil_db *db = extra_args; in __cil_post_db_count_helper()
675 struct cil_db *db = extra_args; in __cil_post_db_array_helper()
874 static int __evaluate_type_expression(struct cil_typeattribute *attr, struct cil_db *db) in __evaluate_type_expression()
889 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap()
926 static int __evaluate_user_expression(struct cil_userattribute *attr, struct cil_db *db) in __evaluate_user_expression()
941 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_user_to_bitmap()
974 static int __evaluate_role_expression(struct cil_roleattribute *attr, struct cil_db *db) in __evaluate_role_expression()
989 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap()
[all …]
Dcil_post.h42 int cil_post_context_sort(struct cil_db *db);
44 int cil_post_process(struct cil_db *db);
Dcil_build_ast.c51 struct cil_db *db;
86 static int cil_allow_multiple_decls(struct cil_db *db, enum cil_flavor f_new, enum cil_flavor f_old) in cil_allow_multiple_decls()
109 int cil_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t key, struct cil_symta… in cil_add_decl_to_symtab()
143 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… in cil_gen_node()
189 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast… in cil_gen_block()
266 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_no… in cil_gen_blockinherit()
328 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_n… in cil_gen_blockabstract()
377 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_no… in cil_gen_in()
444 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast… in cil_gen_class()
513 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node… in cil_gen_classorder()
[all …]
Dcil_verify.c95 int cil_verify_name(const struct cil_db *db, const char *name, enum cil_flavor flavor) in cil_verify_name()
653 int __cil_verify_levelrange_sensitivity(struct cil_db *db, struct cil_sens *low, struct cil_sens *h… in __cil_verify_levelrange_sensitivity()
710 int __cil_verify_levelrange(struct cil_db *db, struct cil_levelrange *lr) in __cil_verify_levelrange()
742 int __cil_verify_named_levelrange(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_levelrange()
798 static int __cil_verify_user_post_eval(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_user_post_eval()
879 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) in __cil_verify_context()
957 int __cil_verify_named_context(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_named_context()
1132 int __cil_verify_netifcon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_netifcon()
1162 int __cil_verify_ibendportcon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_ibendportcon()
1182 int __cil_verify_genfscon(struct cil_db *db, struct cil_tree_node *node) in __cil_verify_genfscon()
[all …]
Dcil_verify.h50 struct cil_db *db;
59 int cil_verify_name(const struct cil_db *db, const char *name, enum cil_flavor flavor);
Dcil_binary.c63 const struct cil_db *db;
73 const struct cil_db *db;
287 int cil_classorder_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_class *class_va… in cil_classorder_to_policydb()
422 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) in cil_roletype_to_policydb()
620 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *db, struct cil_typeattribute … in cil_typeattribute_to_bitmap()
724 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_user *user) in cil_userrole_to_policydb()
788 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_catorder_to_policydb()
847 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_sensitivityorder_to_policydb()
1066 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()
1118 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_internal.h288 struct cil_db { struct
977 void cil_db_init(struct cil_db **db);
978 void cil_db_destroy(struct cil_db **db);
988 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size);
989 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size);
990 int cil_filecons_to_string(struct cil_db *db, char **out, size_t *size);
Dcil.c399 void cil_db_init(struct cil_db **db) in cil_db_init()
456 void cil_db_destroy(struct cil_db **db) in cil_db_destroy()
541 int cil_compile(struct cil_db *db) in cil_compile()
691 void cil_write_policy_conf(FILE *out, struct cil_db *db) in cil_write_policy_conf()
1424 int cil_userprefixes_to_string(struct cil_db *db, char **out, size_t *size) in cil_userprefixes_to_string()
1656 int cil_selinuxusers_to_string(struct cil_db *db, char **out, size_t *size) in cil_selinuxusers_to_string()
1713 int cil_filecons_to_string(struct cil_db *db, char **out, size_t *size) in cil_filecons_to_string()
1831 void cil_set_disable_dontaudit(struct cil_db *db, int disable_dontaudit) in cil_set_disable_dontaudit()
1836 void cil_set_disable_neverallow(struct cil_db *db, int disable_neverallow) in cil_set_disable_neverallow()
1841 void cil_set_attrs_expand_generated(struct cil_db *db, int attrs_expand_generated) in cil_set_attrs_expand_generated()
[all …]
Dcil_policy.h35 void cil_gen_policy(FILE *out, struct cil_db *db);
Dcil_policy.c340 static size_t __cil_userattribute_len(struct cil_db *db, struct cil_userattribute *attr) in __cil_userattribute_len()
354 static size_t __cil_cons_leaf_operand_len(struct cil_db *db, struct cil_list_item *operand) in __cil_cons_leaf_operand_len()
415 static size_t cil_cons_expr_len(struct cil_db *db, struct cil_list *cons_expr) in cil_cons_expr_len()
449 static char *__cil_userattribute_to_string(struct cil_db *db, struct cil_userattribute *attr, char … in __cil_userattribute_to_string()
467 static char *__cil_cons_leaf_operand_to_string(struct cil_db *db, struct cil_list_item *operand, ch… in __cil_cons_leaf_operand_to_string()
595 static char *__cil_cons_expr_to_string(struct cil_db *db, struct cil_list *cons_expr, char *new) in __cil_cons_expr_to_string()
638 static char *cil_cons_expr_to_string(struct cil_db *db, struct cil_list *cons_expr) in cil_cons_expr_to_string()
964 static void cil_mlsconstrains_to_policy(FILE *out, struct cil_db *db, struct cil_list *mlsconstrain… in cil_mlsconstrains_to_policy()
987 static void cil_validatetrans_to_policy(FILE *out, struct cil_db *db, struct cil_list *validatetran… in cil_validatetrans_to_policy()
1633 static void cil_constrains_to_policy(FILE *out, struct cil_db *db, struct cil_list *constrains) in cil_constrains_to_policy()
[all …]
/third_party/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()
/third_party/selinux/libsepol/cil/include/cil/
Dcil.h39 struct cil_db;
40 typedef struct cil_db cil_db_t;
54 extern void cil_set_qualified_names(struct cil_db *db, int qualified_names);
59 extern void cil_set_attrs_expand_generated(struct cil_db *db, int attrs_expand_generated);
60 extern void cil_set_attrs_expand_size(struct cil_db *db, unsigned attrs_expand_size);
63 extern void cil_write_policy_conf(FILE *out, struct cil_db *db);
/third_party/selinux/libsepol/fuzz/
Dsecilc-fuzzer.c23 struct cil_db *db = NULL; in LLVMFuzzerTestOneInput()
/third_party/selinux/secilc/
Dsecil2conf.c71 struct cil_db *db = NULL; in main()

12