/linux-6.12.1/security/selinux/ss/ |
D | mls.h | 27 int mls_compute_context_len(struct policydb *p, struct context *context); 28 void mls_sid_to_context(struct policydb *p, struct context *context, 30 int mls_context_isvalid(struct policydb *p, struct context *c); 31 int mls_range_isvalid(struct policydb *p, struct mls_range *r); 32 int mls_level_isvalid(struct policydb *p, struct mls_level *l); 34 int mls_context_to_sid(struct policydb *p, char oldc, char *scontext, 37 int mls_from_string(struct policydb *p, char *str, struct context *context, 42 int mls_convert_context(struct policydb *oldp, struct policydb *newp, 45 int mls_compute_sid(struct policydb *p, struct context *scontext, 49 int mls_setup_user_range(struct policydb *p, struct context *fromcon, [all …]
|
D | services.c | 77 static int context_struct_to_string(struct policydb *policydb, 82 static int sidtab_entry_to_string(struct policydb *policydb, 88 static void context_struct_compute_av(struct policydb *policydb, 95 static int selinux_set_mapping(struct policydb *pol, in selinux_set_mapping() 248 mls_enabled = policy->policydb.mls_enabled; in security_mls_enabled() 264 static int constraint_expr_eval(struct policydb *policydb, in constraint_expr_eval() argument 309 r1 = policydb->role_val_to_struct[val1 - 1]; in constraint_expr_eval() 310 r2 = policydb->role_val_to_struct[val2 - 1]; in constraint_expr_eval() 455 static void security_dump_masked_av(struct policydb *policydb, in security_dump_masked_av() argument 476 tclass_name = sym_name(policydb, SYM_CLASSES, tclass - 1); in security_dump_masked_av() [all …]
|
D | conditional.h | 63 void cond_policydb_init(struct policydb *p); 64 void cond_policydb_destroy(struct policydb *p); 66 int cond_init_bool_indexes(struct policydb *p); 71 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp); 72 int cond_read_list(struct policydb *p, void *fp); 74 int cond_write_list(struct policydb *p, void *fp); 80 void evaluate_cond_nodes(struct policydb *p); 81 void cond_policydb_destroy_dup(struct policydb *p); 82 int cond_policydb_dup(struct policydb *new, const struct policydb *orig);
|
D | policydb.h | 236 struct policydb { struct 315 extern void policydb_destroy(struct policydb *p); argument 316 extern int policydb_load_isids(struct policydb *p, struct sidtab *s); 317 extern int policydb_context_isvalid(struct policydb *p, struct context *c); 318 extern int policydb_class_isvalid(struct policydb *p, unsigned int class); 319 extern int policydb_type_isvalid(struct policydb *p, unsigned int type); 320 extern int policydb_role_isvalid(struct policydb *p, unsigned int role); 321 extern int policydb_read(struct policydb *p, void *fp); 322 extern int policydb_write(struct policydb *p, void *fp); 325 policydb_filenametr_search(struct policydb *p, struct filename_trans_key *key); [all …]
|
D | conditional.c | 23 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) in cond_evaluate_expr() 91 static void evaluate_cond_node(struct policydb *p, struct cond_node *node) in evaluate_cond_node() 122 void evaluate_cond_nodes(struct policydb *p) in evaluate_cond_nodes() 130 void cond_policydb_init(struct policydb *p) in cond_policydb_init() 147 static void cond_list_destroy(struct policydb *p) in cond_list_destroy() 158 void cond_policydb_destroy(struct policydb *p) in cond_policydb_destroy() 165 int cond_init_bool_indexes(struct policydb *p) in cond_init_bool_indexes() 187 struct policydb *p; in cond_index_bool() 209 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp) in cond_read_bool() 255 struct policydb *p; [all …]
|
D | services.h | 28 struct policydb policydb; member 34 struct policydb *oldp; 35 struct policydb *newp;
|
D | mls.c | 32 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() 86 void mls_sid_to_context(struct policydb *p, struct context *context, in mls_sid_to_context() 158 int mls_level_isvalid(struct policydb *p, struct mls_level *l) in mls_level_isvalid() 178 int mls_range_isvalid(struct policydb *p, struct mls_range *r) in mls_range_isvalid() 189 int mls_context_isvalid(struct policydb *p, struct context *c) in mls_context_isvalid() 230 int mls_context_to_sid(struct policydb *pol, char oldc, char *scontext, in mls_context_to_sid() 355 int mls_from_string(struct policydb *p, char *str, struct context *context, in mls_from_string() 395 int mls_setup_user_range(struct policydb *p, struct context *fromcon, in mls_setup_user_range() 439 int mls_convert_context(struct policydb *oldp, struct policydb *newp, in mls_convert_context() 480 int mls_compute_sid(struct policydb *p, struct context *scontext, in mls_compute_sid() [all …]
|
D | avtab.h | 106 struct policydb; 107 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, 112 int avtab_read(struct avtab *a, void *fp, struct policydb *pol); 113 int avtab_write_item(struct policydb *p, const struct avtab_node *cur, 115 int avtab_write(struct policydb *p, struct avtab *a, void *fp);
|
D | policydb.c | 379 static int roles_init(struct policydb *p) in roles_init() 441 policydb_filenametr_search(struct policydb *p, struct filename_trans_key *key) in policydb_filenametr_search() 477 struct mls_range *policydb_rangetr_search(struct policydb *p, in policydb_rangetr_search() 512 struct role_trans_datum *policydb_roletr_search(struct policydb *p, in policydb_roletr_search() 521 static void policydb_init(struct policydb *p) in policydb_init() 545 struct policydb *p; in common_index() 560 struct policydb *p; in class_index() 575 struct policydb *p; in role_index() 591 struct policydb *p; in type_index() 610 struct policydb *p; in user_index() [all …]
|
D | avtab.c | 339 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() 503 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() 546 int avtab_write_item(struct policydb *p, const struct avtab_node *cur, void *fp) in avtab_write_item() 582 int avtab_write(struct policydb *p, struct avtab *a, void *fp) in avtab_write()
|
/linux-6.12.1/security/selinux/ |
D | Makefile | 20 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/context.o
|