/security/selinux/ss/ |
D | mls.h | 28 int mls_compute_context_len(struct policydb *p, struct context *context); 29 void mls_sid_to_context(struct policydb *p, struct context *context, 31 int mls_context_isvalid(struct policydb *p, struct context *c); 32 int mls_range_isvalid(struct policydb *p, struct mls_range *r); 33 int mls_level_isvalid(struct policydb *p, struct mls_level *l); 35 int mls_context_to_sid(struct policydb *p, 42 int mls_from_string(struct policydb *p, char *str, struct context *context, 47 int mls_convert_context(struct policydb *oldp, 48 struct policydb *newp, 52 int mls_compute_sid(struct policydb *p, [all …]
|
D | services.c | 89 static int context_struct_to_string(struct policydb *policydb, 94 static void context_struct_compute_av(struct policydb *policydb, 101 static int selinux_set_mapping(struct policydb *pol, in selinux_set_mapping() 246 struct policydb *p = &state->ss->policydb; in security_mls_enabled() 262 static int constraint_expr_eval(struct policydb *policydb, in constraint_expr_eval() argument 307 r1 = policydb->role_val_to_struct[val1 - 1]; in constraint_expr_eval() 308 r2 = policydb->role_val_to_struct[val2 - 1]; in constraint_expr_eval() 453 static void security_dump_masked_av(struct policydb *policydb, in security_dump_masked_av() argument 474 tclass_name = sym_name(policydb, SYM_CLASSES, tclass - 1); in security_dump_masked_av() 475 tclass_dat = policydb->class_val_to_struct[tclass - 1]; in security_dump_masked_av() [all …]
|
D | conditional.h | 61 int cond_policydb_init(struct policydb *p); 62 void cond_policydb_destroy(struct policydb *p); 64 int cond_init_bool_indexes(struct policydb *p); 69 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp); 70 int cond_read_list(struct policydb *p, void *fp); 72 int cond_write_list(struct policydb *p, struct cond_node *list, void *fp); 78 int evaluate_cond_node(struct policydb *p, struct cond_node *node);
|
D | policydb.h | 235 struct policydb { struct 313 extern void policydb_destroy(struct policydb *p); argument 314 extern int policydb_load_isids(struct policydb *p, struct sidtab *s); 315 extern int policydb_context_isvalid(struct policydb *p, struct context *c); 316 extern int policydb_class_isvalid(struct policydb *p, unsigned int class); 317 extern int policydb_type_isvalid(struct policydb *p, unsigned int type); 318 extern int policydb_role_isvalid(struct policydb *p, unsigned int role); 319 extern int policydb_read(struct policydb *p, void *fp); 320 extern int policydb_write(struct policydb *p, void *fp); 344 struct policydb *p; [all …]
|
D | services.h | 28 struct policydb policydb; member 42 int context_add_hash(struct policydb *policydb, struct context *context);
|
D | avtab.h | 96 struct policydb; 97 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, 102 int avtab_read(struct avtab *a, void *fp, struct policydb *pol); 103 int avtab_write_item(struct policydb *p, struct avtab_node *cur, void *fp); 104 int avtab_write(struct policydb *p, struct avtab *a, void *fp);
|
D | mls.c | 36 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 …]
|
D | conditional.c | 24 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) in cond_evaluate_expr() 88 int evaluate_cond_node(struct policydb *p, struct cond_node *node) in evaluate_cond_node() 117 int cond_policydb_init(struct policydb *p) in cond_policydb_init() 167 void cond_policydb_destroy(struct policydb *p) in cond_policydb_destroy() 174 int cond_init_bool_indexes(struct policydb *p) in cond_init_bool_indexes() 194 struct policydb *p; in cond_index_bool() 216 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) in cond_read_bool() 262 struct policydb *p; 271 struct policydb *p = data->p; in cond_insertf() 349 static int cond_read_av_list(struct policydb *p, void *fp, struct cond_av_list **ret_list, struct c… in cond_read_av_list() [all …]
|
D | policydb.c | 371 static int roles_init(struct policydb *p) in roles_init() 468 static int policydb_init(struct policydb *p) in policydb_init() 532 struct policydb *p; in common_index() 547 struct policydb *p; in class_index() 562 struct policydb *p; in role_index() 579 struct policydb *p; in type_index() 599 struct policydb *p; in user_index() 616 struct policydb *p; in sens_index() 635 struct policydb *p; in cat_index() 694 static int policydb_index(struct policydb *p) in policydb_index() [all …]
|
D | avtab.c | 387 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() 555 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() 599 int avtab_write_item(struct policydb *p, struct avtab_node *cur, void *fp) in avtab_write_item() 634 int avtab_write(struct policydb *p, struct avtab *a, void *fp) in avtab_write()
|
/security/selinux/ |
D | Makefile | 11 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/status.o
|