Lines Matching refs:policydb_t
58 policydb_t *pdb;
68 policydb_t *pdb;
104 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t **sepol_user)
115 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t **sepol_role)
126 static int __cil_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t **sepol_type)
137 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum_t **sepol_class)
148 static int __cil_get_sepol_cat_datum(policydb_t *pdb, struct cil_symtab_datum *datum, cat_datum_t **sepol_cat)
159 static int __cil_get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum_t **sepol_level)
285 int cil_common_to_policydb(policydb_t *pdb, struct cil_class *cil_common, common_datum_t **common_out)
333 int cil_classorder_to_policydb(policydb_t *pdb, const struct cil_db *db)
402 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role)
437 int cil_role_bounds_to_policydb(policydb_t *pdb, struct cil_role *cil_role)
460 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role)
493 int cil_type_to_policydb(policydb_t *pdb, struct cil_type *cil_type)
520 int cil_type_bounds_to_policydb(policydb_t *pdb, struct cil_type *cil_type)
543 int cil_typealias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias)
573 int cil_typepermissive_to_policydb(policydb_t *pdb, struct cil_typepermissive *cil_typeperm)
594 int cil_typeattribute_to_policydb(policydb_t *pdb, struct cil_typeattribute *cil_attr)
626 int __cil_typeattr_bitmap_init(policydb_t *pdb)
647 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *db, struct cil_typeattribute *cil_attr)
685 int cil_policycap_to_policydb(policydb_t *pdb, struct cil_policycap *cil_polcap)
705 int cil_user_to_policydb(policydb_t *pdb, struct cil_user *cil_user)
729 int cil_user_bounds_to_policydb(policydb_t *pdb, struct cil_user *cil_user)
752 int cil_userrole_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_userrole *userrole)
792 int cil_bool_to_policydb(policydb_t *pdb, struct cil_bool *cil_bool)
816 int cil_catorder_to_policydb(policydb_t *pdb, const struct cil_db *db)
847 int cil_catalias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias)
876 int cil_sensitivityorder_to_policydb(policydb_t *pdb, const struct cil_db *db)
913 int cil_sensalias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias)
1002 int __cil_insert_type_rule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t obj, uint32_t res, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1081 int __cil_type_rule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1137 int cil_type_rule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_type_rule *cil_rule)
1142 int __cil_typetransition_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, cond_node_t *cond_node, enum cil_flavor cond_flavor, hashtab_t filename_trans_table)
1242 int cil_typetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, hashtab_t filename_trans_table)
1280 int __cil_insert_avrule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t obj, uint32_t data, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1409 int __cil_avrule_expand_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_classperms *cp, struct cil_list *neverallows, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1459 int __cil_avrule_expand(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, struct cil_list *neverallows, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1498 int __cil_avrule_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, struct cil_list *neverallows, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1551 int cil_avrule_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_avrule *cil_avrule, struct cil_list *neverallows)
1562 policydb_t *pdb = args->pdb;
1617 static int __cil_cond_expr_to_sepol_expr_helper(policydb_t *pdb, struct cil_list *cil_expr, cond_expr_t **head, cond_expr_t **tail);
1619 static int __cil_cond_item_to_sepol_expr(policydb_t *pdb, struct cil_list_item *item, cond_expr_t **head, cond_expr_t **tail)
1651 static int __cil_cond_expr_to_sepol_expr_helper(policydb_t *pdb, struct cil_list *cil_expr, cond_expr_t **head, cond_expr_t **tail)
1751 static int __cil_cond_expr_to_sepol_expr(policydb_t *pdb, struct cil_list *cil_expr, cond_expr_t **sepol_expr)
1765 int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node, struct cil_list *neverallows, hashtab_t filename_trans_table)
1867 int cil_roletrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_trans_table)
1955 int cil_roleallow_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_roleallow *roleallow)
2001 int __cil_constrain_expr_datum_to_sepol_expr(policydb_t *pdb, const struct cil_db *db, struct cil_list_item *item, enum cil_flavor expr_flavor, constraint_expr_t *expr)
2084 int __cil_constrain_expr_leaf_to_sepol_expr(policydb_t *pdb, const struct cil_db *db, struct cil_list_item *op_item, enum cil_flavor expr_flavor, constraint_expr_t *expr)
2179 int __cil_constrain_expr_to_sepol_expr_helper(policydb_t *pdb, const struct cil_db *db, const struct cil_list *cil_expr, constraint_expr_t **head, constraint_expr_t **tail)
2276 int __cil_constrain_expr_to_sepol_expr(policydb_t *pdb, const struct cil_db *db, const struct cil_list *cil_expr, constraint_expr_t **sepol_expr)
2291 int cil_constrain_to_policydb_helper(policydb_t *pdb, const struct cil_db *db, struct cil_symtab_datum *class, struct cil_list *perms, struct cil_list *expr)
2325 int cil_constrain_expand(policydb_t *pdb, const struct cil_db *db, struct cil_list *classperms, struct cil_list *expr)
2364 int cil_constrain_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_constrain *cil_constrain)
2379 int cil_validatetrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_validatetrans *cil_validatetrans)
2416 int __cil_cats_to_mls_level(policydb_t *pdb, struct cil_cats *cats, mls_level_t *mls_level)
2449 int cil_sepol_level_define(policydb_t *pdb, struct cil_sens *cil_sens)
2482 int cil_level_to_mls_level(policydb_t *pdb, struct cil_level *cil_level, mls_level_t *mls_level)
2509 int __cil_levelrange_to_mls_range(policydb_t *pdb, struct cil_levelrange *cil_lvlrange, mls_range_t *mls_range)
2536 int cil_userlevel_userrange_to_policydb(policydb_t *pdb, struct cil_user *cil_user)
2562 int __cil_context_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct_t *sepol_context)
2600 int cil_sidorder_to_policydb(policydb_t *pdb, const struct cil_db *db)
2635 int cil_rangetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range_trans_table)
2724 int cil_portcon_to_policydb(policydb_t *pdb, struct cil_sort *portcons)
2762 int cil_netifcon_to_policydb(policydb_t *pdb, struct cil_sort *netifcons)
2792 int cil_nodecon_to_policydb(policydb_t *pdb, struct cil_sort *nodecons)
2829 int cil_fsuse_to_policydb(policydb_t *pdb, struct cil_sort *fsuses)
2854 int cil_genfscon_to_policydb(policydb_t *pdb, struct cil_sort *genfscons)
2898 int cil_pirqcon_to_policydb(policydb_t *pdb, struct cil_sort *pirqcons)
2922 int cil_iomemcon_to_policydb(policydb_t *pdb, struct cil_sort *iomemcons)
2947 int cil_ioportcon_to_policydb(policydb_t *pdb, struct cil_sort *ioportcons)
2972 int cil_pcidevicecon_to_policydb(policydb_t *pdb, struct cil_sort *pcidevicecons)
2996 int cil_devicetreecon_to_policydb(policydb_t *pdb, struct cil_sort *devicetreecons)
3020 int cil_default_to_policydb(policydb_t *pdb, struct cil_default *def)
3075 int cil_defaultrange_to_policydb(policydb_t *pdb, struct cil_defaultrange *def)
3114 policydb_t *pdb;
3318 int __cil_contexts_to_policydb(policydb_t *pdb, const struct cil_db *db)
3380 policydb_t *pdb = data;
3393 policydb_t *pdb = data;
3407 policydb_t *pdb = data;
3421 policydb_t *pdb = data;
3435 policydb_t *pdb = data;
3449 policydb_t *pdb = data;
3463 policydb_t *pdb = data;
3476 policydb_t *pdb = data;
3487 int __cil_policydb_val_arrays_create(policydb_t *policydb)
3548 static void __cil_set_conditional_state_and_flags(policydb_t *pdb)
3611 int __cil_policydb_init(policydb_t *pdb, const struct cil_db *db)
3738 policydb_t *pdb = &policydb->p;