Home
last modified time | relevance | path

Searched refs:policydb (Results 1 – 11 of 11) sorted by relevance

/security/selinux/ss/
Dmls.h31 int mls_compute_context_len(struct policydb *p, struct context *context);
32 void mls_sid_to_context(struct policydb *p, struct context *context,
34 int mls_context_isvalid(struct policydb *p, struct context *c);
35 int mls_range_isvalid(struct policydb *p, struct mls_range *r);
36 int mls_level_isvalid(struct policydb *p, struct mls_level *l);
38 int mls_context_to_sid(struct policydb *p,
45 int mls_from_string(struct policydb *p, char *str, struct context *context,
50 int mls_convert_context(struct policydb *oldp,
51 struct policydb *newp,
55 int mls_compute_sid(struct policydb *p,
[all …]
Dservices.c75 struct policydb *oldp;
76 struct policydb *newp;
85 static int context_struct_to_string(struct policydb *policydb,
90 static int sidtab_entry_to_string(struct policydb *policydb,
96 static void context_struct_compute_av(struct policydb *policydb,
103 static int selinux_set_mapping(struct policydb *pol, in selinux_set_mapping()
256 mls_enabled = policy->policydb.mls_enabled; in security_mls_enabled()
272 static int constraint_expr_eval(struct policydb *policydb, in constraint_expr_eval() argument
317 r1 = policydb->role_val_to_struct[val1 - 1]; in constraint_expr_eval()
318 r2 = policydb->role_val_to_struct[val2 - 1]; in constraint_expr_eval()
[all …]
Dconditional.h64 void cond_policydb_init(struct policydb *p);
65 void cond_policydb_destroy(struct policydb *p);
67 int cond_init_bool_indexes(struct policydb *p);
72 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp);
73 int cond_read_list(struct policydb *p, void *fp);
75 int cond_write_list(struct policydb *p, void *fp);
81 void evaluate_cond_nodes(struct policydb *p);
82 void cond_policydb_destroy_dup(struct policydb *p);
83 int cond_policydb_dup(struct policydb *new, struct policydb *orig);
Dpolicydb.h239 struct policydb { struct
320 extern void policydb_destroy(struct policydb *p); argument
321 extern int policydb_load_isids(struct policydb *p, struct sidtab *s);
322 extern int policydb_context_isvalid(struct policydb *p, struct context *c);
323 extern int policydb_class_isvalid(struct policydb *p, unsigned int class);
324 extern int policydb_type_isvalid(struct policydb *p, unsigned int type);
325 extern int policydb_role_isvalid(struct policydb *p, unsigned int role);
326 extern int policydb_read(struct policydb *p, void *fp);
327 extern int policydb_write(struct policydb *p, void *fp);
330 struct policydb *p, struct filename_trans_key *key);
[all …]
Dconditional.c24 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) in cond_evaluate_expr()
92 static void evaluate_cond_node(struct policydb *p, struct cond_node *node) in evaluate_cond_node()
123 void evaluate_cond_nodes(struct policydb *p) in evaluate_cond_nodes()
131 void cond_policydb_init(struct policydb *p) in cond_policydb_init()
148 static void cond_list_destroy(struct policydb *p) in cond_list_destroy()
159 void cond_policydb_destroy(struct policydb *p) in cond_policydb_destroy()
166 int cond_init_bool_indexes(struct policydb *p) in cond_init_bool_indexes()
186 struct policydb *p; in cond_index_bool()
208 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp) in cond_read_bool()
254 struct policydb *p;
[all …]
Davtab.h97 struct policydb;
98 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
103 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
104 int avtab_write_item(struct policydb *p, const struct avtab_node *cur, void *fp);
105 int avtab_write(struct policydb *p, struct avtab *a, void *fp);
Dmls.c36 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len()
89 void mls_sid_to_context(struct policydb *p, in mls_sid_to_context()
162 int mls_level_isvalid(struct policydb *p, struct mls_level *l) in mls_level_isvalid()
182 int mls_range_isvalid(struct policydb *p, struct mls_range *r) in mls_range_isvalid()
193 int mls_context_isvalid(struct policydb *p, struct context *c) in mls_context_isvalid()
234 int mls_context_to_sid(struct policydb *pol, in mls_context_to_sid()
361 int mls_from_string(struct policydb *p, char *str, struct context *context, in mls_from_string()
402 int mls_setup_user_range(struct policydb *p, in mls_setup_user_range()
447 int mls_convert_context(struct policydb *oldp, in mls_convert_context()
448 struct policydb *newp, in mls_convert_context()
[all …]
Dpolicydb.c383 static int roles_init(struct policydb *p) in roles_init()
453 struct policydb *p, struct filename_trans_key *key) in policydb_filenametr_search()
489 struct mls_range *policydb_rangetr_search(struct policydb *p, in policydb_rangetr_search()
523 struct role_trans_datum *policydb_roletr_search(struct policydb *p, in policydb_roletr_search()
532 static void policydb_init(struct policydb *p) in policydb_init()
556 struct policydb *p; in common_index()
571 struct policydb *p; in class_index()
586 struct policydb *p; in role_index()
603 struct policydb *p; in type_index()
623 struct policydb *p; in user_index()
[all …]
Dservices.h27 struct policydb policydb; member
Davtab.c400 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item()
568 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read()
612 int avtab_write_item(struct policydb *p, const struct avtab_node *cur, void *fp) in avtab_write_item()
647 int avtab_write(struct policydb *p, struct avtab *a, void *fp) in avtab_write()
/security/selinux/
DMakefile11 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/context.o