Lines Matching refs:policydb_t
70 policydb_t *pdb;
82 policydb_t *pdb;
88 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t… in __cil_get_sepol_user_datum()
99 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t… in __cil_get_sepol_role_datum()
110 static int __cil_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t… in __cil_get_sepol_type_datum()
121 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum()
132 static int __cil_get_sepol_cat_datum(policydb_t *pdb, struct cil_symtab_datum *datum, cat_datum_t *… in __cil_get_sepol_cat_datum()
143 static int __cil_get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum… in __cil_get_sepol_level_datum()
248 int cil_common_to_policydb(policydb_t *pdb, struct cil_class *cil_common, common_datum_t **common_o… in cil_common_to_policydb()
296 int cil_classorder_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_class *class_va… in cil_classorder_to_policydb()
373 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_to_policydb()
408 int cil_role_bounds_to_policydb(policydb_t *pdb, struct cil_role *cil_role) in cil_role_bounds_to_policydb()
431 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role) in cil_roletype_to_policydb()
464 int cil_type_to_policydb(policydb_t *pdb, struct cil_type *cil_type, void *type_value_to_cil[]) in cil_type_to_policydb()
493 int cil_type_bounds_to_policydb(policydb_t *pdb, struct cil_type *cil_type) in cil_type_bounds_to_policydb()
516 int cil_typealias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias) in cil_typealias_to_policydb()
546 int cil_typepermissive_to_policydb(policydb_t *pdb, struct cil_typepermissive *cil_typeperm) in cil_typepermissive_to_policydb()
567 int cil_typeattribute_to_policydb(policydb_t *pdb, struct cil_typeattribute *cil_attr, void *type_v… in cil_typeattribute_to_policydb()
601 int __cil_typeattr_bitmap_init(policydb_t *pdb) in __cil_typeattr_bitmap_init()
631 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *db, struct cil_typeattribute … in cil_typeattribute_to_bitmap()
670 int cil_policycap_to_policydb(policydb_t *pdb, struct cil_policycap *cil_polcap) in cil_policycap_to_policydb()
690 int cil_user_to_policydb(policydb_t *pdb, struct cil_user *cil_user) in cil_user_to_policydb()
714 int cil_user_bounds_to_policydb(policydb_t *pdb, struct cil_user *cil_user) in cil_user_bounds_to_policydb()
737 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_user *user) in cil_userrole_to_policydb()
781 int cil_bool_to_policydb(policydb_t *pdb, struct cil_bool *cil_bool) in cil_bool_to_policydb()
805 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_catorder_to_policydb()
836 int cil_catalias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias) in cil_catalias_to_policydb()
864 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_sensitivityorder_to_policydb()
901 int cil_sensalias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias) in cil_sensalias_to_policydb()
990 int __cil_insert_type_rule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t obj… in __cil_insert_type_rule()
1083 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()
1139 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()
1144 int __cil_typetransition_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_nametypetran… in __cil_typetransition_to_avtab()
1254 int cil_typetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_nametypetra… in cil_typetransition_to_policydb()
1309 int __cil_insert_avrule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t obj, u… in __cil_insert_avrule()
1356 int __cil_avrule_expand_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct… in __cil_avrule_expand_helper()
1397 int __cil_avrule_expand(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_sy… in __cil_avrule_expand()
1452 int __cil_avrule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, … in __cil_avrule_to_avtab()
1569 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule) in cil_avrule_to_policydb()
1791 int __cil_avrulex_to_hashtable_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src,… in __cil_avrulex_to_hashtable_helper()
1831 int cil_avrulex_to_hashtable(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrul… in cil_avrulex_to_hashtable()
1952 policydb_t *pdb = args->pdb; in __cil_cond_to_policydb_helper()
2089 static int __cil_cond_expr_to_sepol_expr_helper(policydb_t *pdb, struct cil_list *cil_expr, cond_ex…
2091 static int __cil_cond_item_to_sepol_expr(policydb_t *pdb, struct cil_list_item *item, cond_expr_t *… in __cil_cond_item_to_sepol_expr()
2123 static int __cil_cond_expr_to_sepol_expr_helper(policydb_t *pdb, struct cil_list *cil_expr, cond_ex… in __cil_cond_expr_to_sepol_expr_helper()
2224 static int __cil_cond_expr_to_sepol_expr(policydb_t *pdb, struct cil_list *cil_expr, cond_expr_t **… in __cil_cond_expr_to_sepol_expr()
2238 int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node,… in cil_booleanif_to_policydb()
2344 int cil_roletrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *… in cil_roletrans_to_policydb()
2431 int cil_roleallow_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_roleallow *rolea… in cil_roleallow_to_policydb()
2477 int __cil_constrain_expr_datum_to_sepol_expr(policydb_t *pdb, const struct cil_db *db, struct cil_l… in __cil_constrain_expr_datum_to_sepol_expr()
2585 int __cil_constrain_expr_leaf_to_sepol_expr(policydb_t *pdb, const struct cil_db *db, struct cil_li… in __cil_constrain_expr_leaf_to_sepol_expr()
2680 int __cil_constrain_expr_to_sepol_expr_helper(policydb_t *pdb, const struct cil_db *db, const struc… in __cil_constrain_expr_to_sepol_expr_helper()
2777 int __cil_constrain_expr_to_sepol_expr(policydb_t *pdb, const struct cil_db *db, const struct cil_l… in __cil_constrain_expr_to_sepol_expr()
2792 int cil_constrain_to_policydb_helper(policydb_t *pdb, const struct cil_db *db, struct cil_symtab_da… in cil_constrain_to_policydb_helper()
2826 int cil_constrain_expand(policydb_t *pdb, const struct cil_db *db, struct cil_list *classperms, str… in cil_constrain_expand()
2865 int cil_constrain_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_constrain *cil_c… in cil_constrain_to_policydb()
2880 int cil_validatetrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_validatetran… in cil_validatetrans_to_policydb()
2917 int __cil_cats_to_mls_level(policydb_t *pdb, struct cil_cats *cats, mls_level_t *mls_level) in __cil_cats_to_mls_level()
2950 int cil_sepol_level_define(policydb_t *pdb, struct cil_sens *cil_sens) in cil_sepol_level_define()
2983 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level) in cil_level_to_mls_level()
3010 int __cil_levelrange_to_mls_range(policydb_t *pdb, struct cil_levelrange *cil_lvlrange, mls_range_t… in __cil_levelrange_to_mls_range()
3037 int cil_userlevel_userrange_to_policydb(policydb_t *pdb, struct cil_user *cil_user) in cil_userlevel_userrange_to_policydb()
3063 int __cil_context_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct… in __cil_context_to_sepol_context()
3101 int cil_sidorder_to_policydb(policydb_t *pdb, const struct cil_db *db) in cil_sidorder_to_policydb()
3136 int cil_rangetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetrans… in cil_rangetransition_to_policydb()
3235 int cil_ibpkeycon_to_policydb(policydb_t *pdb, struct cil_sort *ibpkeycons) in cil_ibpkeycon_to_policydb()
3269 int cil_portcon_to_policydb(policydb_t *pdb, struct cil_sort *portcons) in cil_portcon_to_policydb()
3313 int cil_netifcon_to_policydb(policydb_t *pdb, struct cil_sort *netifcons) in cil_netifcon_to_policydb()
3343 int cil_ibendportcon_to_policydb(policydb_t *pdb, struct cil_sort *ibendportcons) in cil_ibendportcon_to_policydb()
3367 int cil_nodecon_to_policydb(policydb_t *pdb, struct cil_sort *nodecons) in cil_nodecon_to_policydb()
3404 int cil_fsuse_to_policydb(policydb_t *pdb, struct cil_sort *fsuses) in cil_fsuse_to_policydb()
3429 int cil_genfscon_to_policydb(policydb_t *pdb, struct cil_sort *genfscons) in cil_genfscon_to_policydb()
3473 int cil_pirqcon_to_policydb(policydb_t *pdb, struct cil_sort *pirqcons) in cil_pirqcon_to_policydb()
3497 int cil_iomemcon_to_policydb(policydb_t *pdb, struct cil_sort *iomemcons) in cil_iomemcon_to_policydb()
3522 int cil_ioportcon_to_policydb(policydb_t *pdb, struct cil_sort *ioportcons) in cil_ioportcon_to_policydb()
3547 int cil_pcidevicecon_to_policydb(policydb_t *pdb, struct cil_sort *pcidevicecons) in cil_pcidevicecon_to_policydb()
3571 int cil_devicetreecon_to_policydb(policydb_t *pdb, struct cil_sort *devicetreecons) in cil_devicetreecon_to_policydb()
3595 int cil_default_to_policydb(policydb_t *pdb, struct cil_default *def) in cil_default_to_policydb()
3650 int cil_defaultrange_to_policydb(policydb_t *pdb, struct cil_defaultrange *def) in cil_defaultrange_to_policydb()
3689 policydb_t *pdb; in __cil_node_to_policydb()
3897 int __cil_contexts_to_policydb(policydb_t *pdb, const struct cil_db *db) in __cil_contexts_to_policydb()
3969 policydb_t *pdb = data; in __cil_common_val_array_insert()
3982 policydb_t *pdb = data; in __cil_class_val_array_insert()
3996 policydb_t *pdb = data; in __cil_role_val_array_insert()
4010 policydb_t *pdb = data; in __cil_type_val_array_insert()
4024 policydb_t *pdb = data; in __cil_user_val_array_insert()
4038 policydb_t *pdb = data; in __cil_bool_val_array_insert()
4052 policydb_t *pdb = data; in __cil_level_val_array_insert()
4065 policydb_t *pdb = data; in __cil_cat_val_array_insert()
4076 int __cil_policydb_val_arrays_create(policydb_t *policydb) in __cil_policydb_val_arrays_create()
4137 static void __cil_set_conditional_state_and_flags(policydb_t *pdb) in __cil_set_conditional_state_and_flags()
4200 int __cil_policydb_init(policydb_t *pdb, const struct cil_db *db, struct cil_class *class_value_to_… in __cil_policydb_init()
4383 static int __cil_rule_to_sepol_class_perms(policydb_t *pdb, struct cil_list *classperms, class_perm… in __cil_rule_to_sepol_class_perms()
4434 static int __cil_permx_to_sepol_class_perms(policydb_t *pdb, struct cil_permissionx *permx, class_p… in __cil_permx_to_sepol_class_perms()
4486 static int __cil_add_sepol_type(policydb_t *pdb, const struct cil_db *db, struct cil_symtab_datum *… in __cil_add_sepol_type()
4681 static int cil_check_neverallow(const struct cil_db *db, policydb_t *pdb, struct cil_tree_node *nod… in cil_check_neverallow()
4768 static int cil_check_neverallows(const struct cil_db *db, policydb_t *pdb, struct cil_list *neveral… in cil_check_neverallows()
4784 static struct cil_list *cil_classperms_from_sepol(policydb_t *pdb, uint16_t class, uint32_t data, s… in cil_classperms_from_sepol()
4816 static int cil_avrule_from_sepol(policydb_t *pdb, avtab_ptr_t sepol_rule, struct cil_avrule *cil_ru… in cil_avrule_from_sepol()
4837 static int cil_check_type_bounds(const struct cil_db *db, policydb_t *pdb, void *type_value_to_cil,… in cil_check_type_bounds()
4922 policydb_t *pdb = &policydb->p; in cil_binary_create_allocated_pdb()