/external/libsepol/include/sepol/policydb/ |
D | hashtab.h | 22 typedef char *hashtab_key_t; /* generic key type */ typedef 28 hashtab_key_t key; 37 unsigned int (*hash_value) (struct hashtab_val * h, hashtab_key_t key); /* hash function */ 38 …int (*keycmp) (struct hashtab_val * h, hashtab_key_t key1, hashtab_key_t key2); /* key comparison … 50 const hashtab_key_t 53 const hashtab_key_t key1, 54 const hashtab_key_t key2), 63 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d); 73 extern int hashtab_remove(hashtab_t h, hashtab_key_t k, 74 void (*destroy) (hashtab_key_t k, [all …]
|
D | conditional.h | 124 extern int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p); 126 extern int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum,
|
D | policydb.h | 594 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p); 595 typedef void (*hashtab_destroy_func_t) (hashtab_key_t k, hashtab_datum_t d, 635 hashtab_key_t key, hashtab_datum_t datum,
|
/external/libsepol/src/ |
D | hashtab.c | 36 const hashtab_key_t key), in hashtab_create() 38 const hashtab_key_t key1, in hashtab_create() 39 const hashtab_key_t key2), in hashtab_create() 66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() 103 int hashtab_remove(hashtab_t h, hashtab_key_t key, in hashtab_remove() 104 void (*destroy) (hashtab_key_t k, in hashtab_remove() 136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() 137 void (*destroy) (hashtab_key_t k, in hashtab_replace() 178 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search() 223 int (*apply) (hashtab_key_t k, in hashtab_map() [all …]
|
D | symtab.c | 14 static unsigned int symhash(hashtab_t h, hashtab_key_t key) in symhash() 30 __attribute__ ((unused)), hashtab_key_t key1, in symcmp() 31 hashtab_key_t key2) in symcmp()
|
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() 236 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() 300 (hashtab_key_t) new_id, in class_copy_callback() 339 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in role_copy_callback() 388 (hashtab_key_t) new_id, in role_copy_callback() 429 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() 486 (hashtab_key_t) new_id, in type_copy_callback() 524 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in user_copy_callback() 554 (hashtab_key_t) new_id, in user_copy_callback() [all …]
|
D | users.c | 138 (const hashtab_key_t)cname); in sepol_user_modify() 162 (const hashtab_key_t)roles[i]); in sepol_user_modify() 298 (const hashtab_key_t)cname) != NULL); in sepol_user_exists() 327 (const hashtab_key_t)cname); in sepol_user_query()
|
D | expand.c | 74 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() 126 (hashtab_key_t) new_id, in type_copy_callback() 144 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback() 187 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback() 224 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback() 392 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() 479 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in constraint_copy_callback() 510 static int type_bounds_copy_callback(hashtab_key_t key, in type_bounds_copy_callback() 540 static int role_bounds_copy_callback(hashtab_key_t key, in role_bounds_copy_callback() 570 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 | 721 int policydb_role_cache(hashtab_key_t key in policydb_role_cache() 739 int policydb_user_cache(hashtab_key_t key in policydb_user_cache() 785 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index() 799 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index() 814 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index() 829 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in type_index() 847 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in user_index() 864 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in sens_index() 882 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cat_index() 899 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, [all …]
|
D | roles.c | 17 (const hashtab_key_t)role) != NULL); in sepol_role_exists()
|
D | hierarchy.c | 125 static int check_type_hierarchy_callback(hashtab_key_t k, hashtab_datum_t d, in check_type_hierarchy_callback() 402 static int check_role_hierarchy_callback(hashtab_key_t k in check_role_hierarchy_callback() 428 static int check_user_hierarchy_callback(hashtab_key_t k in check_user_hierarchy_callback()
|
D | write.c | 411 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in sens_write() 439 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cat_write() 603 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cond_write_bool() 806 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in perm_write() 831 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in common_write() 910 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in class_write() 994 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in role_write() 1056 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in type_write() 1134 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in user_write() 1192 static int (*write_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, [all …]
|
D | util.c | 62 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) in perm_name()
|
D | mls.c | 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()
|
D | conditional.c | 534 int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p in cond_destroy_bool() 543 int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cond_index_bool()
|
D | services.c | 761 static int validate_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) in validate_perm() 786 static int validate_class(hashtab_key_t key, hashtab_datum_t datum, void *p) in validate_class()
|
/external/checkpolicy/ |
D | module_compiler.h | 30 hashtab_key_t key, hashtab_datum_t datum, 44 hashtab_key_t key, hashtab_datum_t datum, 68 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id); 73 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id);
|
D | policy_define.c | 480 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms() 511 (hashtab_key_t) perm, in define_common_perms() 563 (hashtab_key_t) id); in define_av_perms() 588 (hashtab_key_t) id); in define_av_perms() 626 (hashtab_key_t) id); in define_av_perms() 634 (hashtab_key_t) id, in define_av_perms() 814 (hashtab_key_t) id); in define_dominance() 963 static int clone_level(hashtab_key_t key, hashtab_datum_t datum, void *arg) in clone_level() 1006 (hashtab_key_t) id); in define_level() 1035 (hashtab_key_t) in define_level() [all …]
|
D | module_compiler.c | 127 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol() 622 hashtab_key_t key, hashtab_datum_t datum, in require_symbol() 722 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy() 1247 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id) in is_id_in_scope() 1294 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id) in is_perm_in_scope()
|
D | checkpolicy.c | 144 static int find_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) in find_perm() 364 static int check_level(hashtab_key_t key, hashtab_datum_t datum, void *arg) in check_level()
|
/external/libsepol/tests/ |
D | test-common.c | 57 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in common_test_index() 66 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in class_test_index() 76 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in role_test_index() 86 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in type_test_index() 100 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in user_test_index() 110 static int cond_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in cond_test_index() 120 static int level_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in level_test_index() 129 static int cat_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in cat_test_index() 138 static int (*test_index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, void *p) = {
|
/external/checkpolicy/test/ |
D | dismod.c | 292 int display_type_callback(hashtab_key_t key, hashtab_datum_t datum, void *data) in display_type_callback() 496 int role_display_callback(hashtab_key_t key __attribute__((unused)), in role_display_callback()
|