/external/libsepol/include/sepol/policydb/ |
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 function */ 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 [all...] |
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,
|
policydb.h | 581 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p); 582 typedef void (*hashtab_destroy_func_t) (hashtab_key_t k, hashtab_datum_t d, 622 hashtab_key_t key, hashtab_datum_t datum,
|
/external/checkpolicy/ |
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);
|
policy_define.c | 384 (hashtab_key_t) id, (hashtab_datum_t) comdatum); 415 (hashtab_key_t) perm, 467 (hashtab_key_t) id); 492 (hashtab_key_t) id); 530 (hashtab_key_t) id); 538 (hashtab_key_t) id, 718 (hashtab_key_t) id); 867 static int clone_level(hashtab_key_t key, hashtab_datum_t datum, void *arg) 910 (hashtab_key_t) id); 939 (hashtab_key_t) [all...] |
module_compiler.c | 127 hashtab_key_t key, hashtab_datum_t datum, 622 hashtab_key_t key, hashtab_datum_t datum, 722 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p 1247 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id) 1294 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id) [all...] |
checkpolicy.c | 144 static int find_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) 364 static int check_level(hashtab_key_t key, hashtab_datum_t datum, void *arg)
|
/external/libsepol/src/ |
symtab.c | 14 static unsigned int symhash(hashtab_t h, hashtab_key_t key) 30 __attribute__ ((unused)), hashtab_key_t key1, 31 hashtab_key_t key2)
|
hashtab.c | 36 const hashtab_key_t key), 38 const hashtab_key_t key1, 39 const hashtab_key_t key2), 66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) 103 int hashtab_remove(hashtab_t h, hashtab_key_t key, 104 void (*destroy) (hashtab_key_t k, 136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, 137 void (*destroy) (hashtab_key_t k, 178 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) 223 int (*apply) (hashtab_key_t k [all...] |
roles.c | 17 (const hashtab_key_t)role) != NULL);
|
users.c | 138 (const hashtab_key_t)cname); 162 (const hashtab_key_t)roles[i]); 298 (const hashtab_key_t)cname) != NULL); 327 (const hashtab_key_t)cname);
|
util.c | 62 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data)
|
context.c | 169 (hashtab_key_t) user); 178 (hashtab_key_t) role); 187 (hashtab_key_t) type);
|
link.c | 123 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 163 (hashtab_key_t) new_id, 208 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 271 (hashtab_key_t) new_id, 304 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 353 (hashtab_key_t) new_id, 394 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 451 (hashtab_key_t) new_id, 489 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 519 (hashtab_key_t) new_id [all...] |
hierarchy.c | 125 static int check_type_hierarchy_callback(hashtab_key_t k, hashtab_datum_t d, 401 static int check_role_hierarchy_callback(hashtab_key_t k 427 static int check_user_hierarchy_callback(hashtab_key_t k
|
expand.c | 74 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 126 (hashtab_key_t) new_id, 144 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, 187 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 224 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 361 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 442 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 473 static int type_bounds_copy_callback(hashtab_key_t key, 503 static int role_bounds_copy_callback(hashtab_key_t key, 533 static int user_bounds_copy_callback(hashtab_key_t key [all...] |
policydb.c | 700 int policydb_role_cache(hashtab_key_t key 718 int policydb_user_cache(hashtab_key_t key 764 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 778 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 793 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 808 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 826 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 843 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 861 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 878 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum [all...] |
write.c | 411 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 439 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 603 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 806 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 831 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 910 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 982 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 1044 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 1122 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 1180 static int (*write_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum [all...] |
mls.c | 358 (hashtab_key_t) scontextp); 384 (hashtab_key_t) 401 (hashtab_key_t)
|
conditional.c | 534 int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p 543 int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum, void *datap)
|
services.c | 760 static int validate_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) 785 static int validate_class(hashtab_key_t key, hashtab_datum_t datum, void *p) [all...] |
/external/libsepol/tests/ |
test-common.c | 57 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 66 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 76 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 86 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 100 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 110 static int cond_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 120 static int level_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 129 static int cat_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 138 static int (*test_index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, void *p) = {
|
/external/checkpolicy/test/ |
dismod.c | 292 int display_type_callback(hashtab_key_t key, hashtab_datum_t datum, void *data) 496 int role_display_callback(hashtab_key_t key __attribute__((unused)),
|