Searched refs:policydb_t (Results 1 - 25 of 84) sorted by relevance

1234

/external/selinux/libsepol/tests/
H A Dtest-linker-cond-map.h24 extern void base_cond_tests(policydb_t * base);
25 extern void module_cond_tests(policydb_t * base);
H A Dtest-linker-types.h24 extern void base_type_tests(policydb_t * base);
25 extern void module_type_tests(policydb_t * base);
H A Dtest-linker-roles.h26 extern void base_role_tests(policydb_t * base);
27 extern void module_role_tests(policydb_t * base);
H A Dtest-common.h37 extern void test_sym_presence(policydb_t * p, char *id, int sym_type, unsigned int scope_type, unsigned int *decls, unsigned int len);
43 extern void test_policydb_indexes(policydb_t * p);
53 extern void test_alias_datum(policydb_t * p, char *id, char *primary_id, char mode, unsigned int flavor);
65 extern role_datum_t *test_role_type_set(policydb_t * p, char *id, avrule_decl_t * decl, char **types, unsigned int len, unsigned int flags);
76 extern void test_attr_types(policydb_t * p, char *id, avrule_decl_t * decl, char **types, int len);
H A Dhelpers.h36 * p policydb_t into which the policy will be read. This should be
48 extern int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name);
57 extern avrule_decl_t *test_find_decl_by_sym(policydb_t * p, int symtab, char *sym);
H A Dtest-downgrade.h102 int read_binary_policy(const char *path, policydb_t *);
117 int write_binary_policy(const char *path, policydb_t *);
H A Dtest-expander.c48 policydb_t role_expanded;
49 policydb_t user_expanded;
50 policydb_t base_expanded2;
51 static policydb_t basemod;
52 static policydb_t basemod2;
53 static policydb_t mod2;
54 static policydb_t base_expanded;
55 static policydb_t base_only_mod;
56 static policydb_t base_only_expanded;
57 static policydb_t role_basemo
[all...]
H A Dtest-expander-roles.c30 extern policydb_t role_expanded;
/external/selinux/libsepol/src/
H A Dmls.h31 const policydb_t * policydb,
35 const policydb_t * policydb,
39 extern int mls_compute_context_len(const policydb_t * policydb,
43 extern void mls_sid_to_context(const policydb_t * policydb,
48 extern int mls_context_to_sid(const policydb_t * policydb,
52 extern int mls_context_isvalid(const policydb_t * p,
55 extern int mls_convert_context(policydb_t * oldp,
56 policydb_t * newp, context_struct_t * context);
58 extern int mls_compute_sid(policydb_t * policydb,
H A Dcontext.h12 const policydb_t * policydb,
17 const policydb_t * policydb,
23 const policydb_t * policydb,
28 extern int context_is_valid(const policydb_t * policydb,
33 const policydb_t * policydb,
/external/selinux/libsepol/cil/src/
H A Dcil_binary.h74 int cil_common_to_policydb(policydb_t *pdb, struct cil_class *cil_common, common_datum_t **common_out);
84 int cil_class_to_policydb(policydb_t *pdb, struct cil_class *cil_class);
94 int cil_role_to_policydb(policydb_t *pdb, struct cil_role *cil_role);
105 int cil_roletype_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_role *role);
115 int cil_type_to_policydb(policydb_t *pdb, struct cil_type *cil_type);
125 int cil_typealias_to_policydb(policydb_t *pdb, struct cil_alias *cil_alias);
137 int cil_typepermissive_to_policydb(policydb_t *pdb, struct cil_typepermissive *cil_typeperm);
147 int cil_typeattribute_to_policydb(policydb_t *pdb, struct cil_typeattribute *cil_attr);
162 int cil_typeattribute_to_bitmap(policydb_t *pdb, const struct cil_db *cdb, struct cil_typeattribute *cil_attr);
172 int cil_policycap_to_policydb(policydb_t *pd
[all...]
/external/selinux/libsepol/include/sepol/policydb/
H A Dexpand.h47 extern int expand_module_avrules(sepol_handle_t * handle, policydb_t * base,
48 policydb_t * out, uint32_t * typemap, uint32_t * boolmap,
57 policydb_t * base, policydb_t * out,
61 extern int expand_convert_type_set(policydb_t * p, uint32_t * typemap,
64 extern int type_set_expand(type_set_t * set, ebitmap_t * t, policydb_t * p,
66 extern int role_set_expand(role_set_t * x, ebitmap_t * r, policydb_t * out, policydb_t * base, uint32_t * rolemap);
68 policydb_t *p, sepol_handle_t *h);
70 policydb_t *
[all...]
H A Davrule_block.h33 extern avrule_decl_t *get_avrule_decl(policydb_t * p, uint32_t decl_id);
34 extern cond_list_t *get_decl_cond_list(policydb_t * p,
37 extern int is_id_enabled(char *id, policydb_t * p, int symbol_table);
38 extern int is_perm_enabled(char *class_id, char *perm_id, policydb_t * p);
H A Dlink.h20 policydb_t * b, policydb_t ** mods, int len,
H A Dhierarchy.h33 extern int hierarchy_check_constraints(sepol_handle_t * handle, policydb_t * p);
H A Dconditional.h96 extern int cond_evaluate_expr(policydb_t * p, cond_expr_t * expr);
100 extern int cond_normalize_expr(policydb_t * p, cond_node_t * cn);
104 extern cond_node_t *cond_node_find(policydb_t * p,
108 extern cond_node_t *cond_node_create(policydb_t * p, cond_node_t * node);
110 extern cond_node_t *cond_node_search(policydb_t * p, cond_node_t * list,
113 extern int evaluate_conds(policydb_t * p);
122 extern int cond_policydb_init(policydb_t * p);
123 extern void cond_policydb_destroy(policydb_t * p);
126 extern int cond_init_bool_indexes(policydb_t * p);
132 extern int cond_read_bool(policydb_t *
[all...]
/external/selinux/checkpolicy/
H A Dparse_util.h33 int read_source_policy(policydb_t * p, const char *file, const char *progname);
/external/sepolicy/tools/sepolicy-analyze/
H A Dattribute.h9 int attribute_func(int argc, char **argv, policydb_t *policydb);
H A Dbooleans.h9 int booleans_func(int argc, char **argv, policydb_t *policydb);
H A Ddups.h9 int dups_func(int argc, char **argv, policydb_t *policydb);
H A Dneverallow.h9 int neverallow_func(int argc, char **argv, policydb_t *policydb);
H A Dperm.h9 int permissive_func(int argc, char **argv, policydb_t *policydb);
H A Dtypecmp.h9 int typecmp_func(int argc, char **argv, policydb_t *policydb);
H A Dperm.c7 static int list_permissive(policydb_t * policydb)
24 int permissive_func (int argc, __attribute__ ((unused)) char **argv, policydb_t *policydb) {
H A Dutils.h12 void display_allow(policydb_t *policydb, avtab_key_t *key, int idx, uint32_t perms);
14 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);

Completed in 168 milliseconds

1234