/third_party/selinux/libsepol/include/sepol/policydb/ |
D | hashtab.h | 25 typedef char *hashtab_key_t; /* generic key type */ typedef 32 hashtab_key_t key; 67 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d); 77 extern int hashtab_remove(hashtab_t h, hashtab_key_t k, 78 void (*destroy) (hashtab_key_t k, 107 int (*apply) (hashtab_key_t k,
|
D | conditional.h | 128 extern int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p); 130 extern int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum,
|
D | policydb.h | 637 extern int policydb_role_cache(hashtab_key_t key, 641 extern int policydb_user_cache(hashtab_key_t key, 665 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p); 703 hashtab_key_t key, hashtab_datum_t datum,
|
/third_party/selinux/libsepol/tests/ |
D | test-common.c | 59 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in common_test_index() 68 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in class_test_index() 78 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in role_test_index() 88 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in type_test_index() 102 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in user_test_index() 112 static int cond_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in cond_test_index() 122 static int level_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in level_test_index() 131 static int cat_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in cat_test_index() 140 static int (*test_index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, void *p) = {
|
/third_party/selinux/libsepol/src/ |
D | link.c | 123 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in permission_copy_callback() 163 (hashtab_key_t) new_id, in permission_copy_callback() 243 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() 307 (hashtab_key_t) new_id, in class_copy_callback() 346 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in role_copy_callback() 395 (hashtab_key_t) new_id, in role_copy_callback() 436 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() 493 (hashtab_key_t) new_id, in type_copy_callback() 531 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in user_copy_callback() 561 (hashtab_key_t) new_id, in user_copy_callback() [all …]
|
D | hashtab.c | 105 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() 144 int hashtab_remove(hashtab_t h, hashtab_key_t key, in hashtab_remove() 145 void (*destroy) (hashtab_key_t k, in hashtab_remove() 222 int (*apply) (hashtab_key_t k, in hashtab_map()
|
D | expand.c | 106 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() 158 (hashtab_key_t) new_id, in type_copy_callback() 176 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback() 219 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback() 256 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback() 445 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() 532 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in constraint_copy_callback() 563 static int type_bounds_copy_callback(hashtab_key_t key, in type_bounds_copy_callback() 593 static int role_bounds_copy_callback(hashtab_key_t key, in role_bounds_copy_callback() 623 static int user_bounds_copy_callback(hashtab_key_t key, in user_bounds_copy_callback() [all …]
|
D | context.c | 169 (hashtab_key_t) user); in context_from_record() 178 (hashtab_key_t) role); in context_from_record() 187 (hashtab_key_t) type); in context_from_record()
|
D | policydb.c | 927 int policydb_role_cache(hashtab_key_t key in policydb_role_cache() 945 int policydb_user_cache(hashtab_key_t key in policydb_user_cache() 991 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index() 1007 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index() 1024 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index() 1041 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in type_index() 1061 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in user_index() 1079 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in sens_index() 1098 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cat_index() 1117 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, [all …]
|
D | mls.c | 265 hashtab_key_t key; in mls_context_isvalid() 358 (hashtab_key_t) scontextp); in mls_context_to_sid() 384 (hashtab_key_t) in mls_context_to_sid() 401 (hashtab_key_t) in mls_context_to_sid() 623 r = hashtab_search(policydb->range_tr, (hashtab_key_t) &rtr); in mls_compute_sid()
|
D | write.c | 450 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in sens_write() 478 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cat_write() 572 static int filename_write_one_compat(hashtab_key_t key, void *data, void *ptr) in filename_write_one_compat() 608 static int filename_write_one(hashtab_key_t key, void *data, void *ptr) in filename_write_one() 718 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cond_write_bool() 921 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in perm_write() 946 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in common_write() 1027 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in class_write() 1128 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in role_write() 1207 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in type_write() [all …]
|
D | hierarchy.c | 466 static int bounds_check_type_callback(hashtab_key_t k __attribute__ ((unused)), in bounds_check_type_callback() 512 static int bounds_check_role_callback(hashtab_key_t k, in bounds_check_role_callback() 555 static int bounds_check_user_callback(hashtab_key_t k, in bounds_check_user_callback() 596 int hierarchy_add_##prefix##_callback(hashtab_key_t k __attribute__ ((unused)), \
|
D | policydb_validate.c | 132 static int validate_scope(__attribute__ ((unused)) hashtab_key_t k, hashtab_datum_t d, void *args) in validate_scope() 529 static int validate_filename_trans(hashtab_key_t k, hashtab_datum_t d, void *args) in validate_filename_trans() 669 static int validate_datum(__attribute__ ((unused))hashtab_key_t k, hashtab_datum_t d, void *args) in validate_datum()
|
D | util.c | 65 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) in perm_name()
|
/third_party/selinux/checkpolicy/ |
D | module_compiler.h | 30 hashtab_key_t key, hashtab_datum_t datum, 44 hashtab_key_t key, hashtab_datum_t datum,
|
D | policy_define.c | 521 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms() 552 (hashtab_key_t) perm, in define_common_perms() 604 (hashtab_key_t) id); in define_av_perms() 629 (hashtab_key_t) id); in define_av_perms() 667 (hashtab_key_t) id); in define_av_perms() 675 (hashtab_key_t) id, in define_av_perms() 855 (hashtab_key_t) id); in define_dominance() 1004 static int clone_level(hashtab_key_t key __attribute__ ((unused)), hashtab_datum_t datum, void *arg) in clone_level() 1047 (hashtab_key_t) id); in define_level() 1076 (hashtab_key_t) in define_level() [all …]
|
D | module_compiler.c | 154 static int create_symbol(uint32_t symbol_type, hashtab_key_t key, hashtab_datum_t datum, in create_symbol() 197 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol() 716 hashtab_key_t key, hashtab_datum_t datum, in require_symbol() 763 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_symtab.h | 77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… 81 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args),
|
D | cil_symtab.c | 88 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… in cil_symtab_insert() 121 *datum = (struct cil_symtab_datum*)hashtab_search(symtab->table, (hashtab_key_t)key); in cil_symtab_get_datum() 130 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args), in cil_symtab_map() 136 static int __cil_symtab_destroy_helper(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, … in __cil_symtab_destroy_helper()
|
D | cil_fqn.c | 46 static int __cil_fqn_qualify_decls(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, void… in __cil_fqn_qualify_decls() 72 static int __cil_fqn_qualify_blocks(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, voi… in __cil_fqn_qualify_blocks()
|
D | cil_strpool.c | 90 static int cil_strpool_entry_destroy(hashtab_key_t k __attribute__ ((unused)), hashtab_datum_t d, v… in cil_strpool_entry_destroy()
|
D | cil_build_ast.c | 109 int cil_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t key, struct cil_symta… in cil_add_decl_to_symtab() 143 … *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_… in cil_gen_node() 222 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)block, (hashtab_key_t)key, CIL_SYM_BLOCK… in cil_gen_block() 472 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)class, (hashtab_key_t)key, CIL_SYM_CLASS… in cil_gen_class() 595 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)perm, (hashtab_key_t)key, CIL_SYM_PERMS,… in cil_gen_perm() 834 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)cp, (hashtab_key_t)key, CIL_SYM_CLASSPER… in cil_gen_classpermission() 941 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)map, (hashtab_key_t)key, CIL_SYM_CLASSES… in cil_gen_map_class() 1041 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)common, (hashtab_key_t)key, CIL_SYM_COMM… in cil_gen_common() 1139 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)sid, (hashtab_key_t)key, CIL_SYM_SIDS, C… in cil_gen_sid() 1308 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)user, (hashtab_key_t)key, CIL_SYM_USERS,… in cil_gen_user() [all …]
|
D | cil_binary.c | 380 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb() 1621 int __cil_avrulex_ioctl_to_policydb(hashtab_key_t k, hashtab_datum_t datum, void *args) in __cil_avrulex_ioctl_to_policydb() 1699 hashtab_xperms = (ebitmap_t *)hashtab_search(h, (hashtab_key_t)avtab_key); in __cil_avrulex_ioctl_to_hashtable() 1708 rc = hashtab_insert(h, (hashtab_key_t)avtab_key, hashtab_xperms); in __cil_avrulex_ioctl_to_hashtable() 1877 static int __cil_avrulex_ioctl_destroy(hashtab_key_t k, hashtab_datum_t datum, __attribute__((unuse… in __cil_avrulex_ioctl_destroy() 2378 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb() 2382 new_role = hashtab_search(role_trans_table, (hashtab_key_t)new); in cil_roletrans_to_policydb() 3207 rc = hashtab_insert(pdb->range_tr, (hashtab_key_t)newkey, newdatum); in cil_rangetransition_to_policydb() 3210 o_range = hashtab_search(pdb->range_tr, (hashtab_key_t)newkey); in cil_rangetransition_to_policydb() 3967 int __cil_common_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_common_val_array_insert() [all …]
|
D | cil_build_ast.h | 40 int cil_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t key, struct cil_symta… 42 … *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_…
|
/third_party/selinux/libsepol/cil/test/unit/ |
D | test_cil_symtab.c | 59 …int rc = cil_symtab_insert(test_symtab, (hashtab_key_t)test_name, (struct cil_symtab_datum*)test_b… in test_cil_symtab_insert()
|