/linux-6.1.9/security/selinux/ss/ |
D | mls.h | 31 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 …]
|
D | services.c | 73 struct policydb *oldp; 74 struct policydb *newp; 83 static int context_struct_to_string(struct policydb *policydb, 88 static int sidtab_entry_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() 254 mls_enabled = policy->policydb.mls_enabled; in security_mls_enabled() 270 static int constraint_expr_eval(struct policydb *policydb, in constraint_expr_eval() argument 315 r1 = policydb->role_val_to_struct[val1 - 1]; in constraint_expr_eval() 316 r2 = policydb->role_val_to_struct[val2 - 1]; in constraint_expr_eval() [all …]
|
D | conditional.h | 64 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);
|
D | policydb.h | 239 struct policydb { struct 318 extern void policydb_destroy(struct policydb *p); argument 319 extern int policydb_load_isids(struct policydb *p, struct sidtab *s); 320 extern int policydb_context_isvalid(struct policydb *p, struct context *c); 321 extern int policydb_class_isvalid(struct policydb *p, unsigned int class); 322 extern int policydb_type_isvalid(struct policydb *p, unsigned int type); 323 extern int policydb_role_isvalid(struct policydb *p, unsigned int role); 324 extern int policydb_read(struct policydb *p, void *fp); 325 extern int policydb_write(struct policydb *p, void *fp); 328 struct policydb *p, struct filename_trans_key *key); [all …]
|
D | conditional.c | 24 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 …]
|
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() 161 int mls_level_isvalid(struct policydb *p, struct mls_level *l) in mls_level_isvalid() 181 int mls_range_isvalid(struct policydb *p, struct mls_range *r) in mls_range_isvalid() 192 int mls_context_isvalid(struct policydb *p, struct context *c) in mls_context_isvalid() 233 int mls_context_to_sid(struct policydb *pol, in mls_context_to_sid() 360 int mls_from_string(struct policydb *p, char *str, struct context *context, in mls_from_string() 401 int mls_setup_user_range(struct policydb *p, in mls_setup_user_range() 446 int mls_convert_context(struct policydb *oldp, in mls_convert_context() 447 struct policydb *newp, in mls_convert_context() [all …]
|
D | avtab.h | 97 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);
|
D | policydb.c | 378 static int roles_init(struct policydb *p) in roles_init() 448 struct policydb *p, struct filename_trans_key *key) in policydb_filenametr_search() 484 struct mls_range *policydb_rangetr_search(struct policydb *p, in policydb_rangetr_search() 518 struct role_trans_datum *policydb_roletr_search(struct policydb *p, in policydb_roletr_search() 527 static void policydb_init(struct policydb *p) in policydb_init() 551 struct policydb *p; in common_index() 566 struct policydb *p; in class_index() 581 struct policydb *p; in role_index() 598 struct policydb *p; in type_index() 618 struct policydb *p; in user_index() [all …]
|
D | services.h | 27 struct policydb policydb; member
|
D | avtab.c | 400 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()
|
/linux-6.1.9/security/selinux/ |
D | Makefile | 11 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/context.o
|