/external/selinux/libsepol/include/sepol/policydb/ |
D | hashtab.h | 43 typedef hashtab_val_t *hashtab_t; typedef 51 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, 54 int (*keycmp) (hashtab_t h, 65 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d); 75 extern int hashtab_remove(hashtab_t h, hashtab_key_t k, 89 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d, 100 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k); 105 extern void hashtab_destroy(hashtab_t h); 118 extern int hashtab_map(hashtab_t h, 128 extern void hashtab_map_remove_on_error(hashtab_t h, [all …]
|
D | symtab.h | 33 hashtab_t table; /* hash table (keyed on a string) */
|
D | conditional.h | 132 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
|
/external/selinux/policycoreutils/newrole/ |
D | hashtab.h | 40 typedef hashtab_val_t *hashtab_t; typedef 54 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, 57 int (*keycmp) (hashtab_t h, 68 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d); 78 extern int hashtab_remove(hashtab_t h, hashtab_key_t k, 92 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d, 103 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k); 108 extern void hashtab_destroy(hashtab_t h); 121 extern int hashtab_map(hashtab_t h, 131 extern void hashtab_map_remove_on_error(hashtab_t h, [all …]
|
D | hashtab.c | 14 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, in hashtab_create() 16 int (*keycmp) (hashtab_t h, in hashtab_create() 22 hashtab_t p; in hashtab_create() 25 p = (hashtab_t) malloc(sizeof(hashtab_val_t)); in hashtab_create() 45 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() 82 int hashtab_remove(hashtab_t h, hashtab_key_t key, in hashtab_remove() 115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() 157 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search() 177 void hashtab_destroy(hashtab_t h) in hashtab_destroy() 201 int hashtab_map(hashtab_t h, in hashtab_map() [all …]
|
D | newrole.c | 231 static unsigned int reqsymhash(hashtab_t h, hashtab_key_t key) in reqsymhash() 246 static int reqsymcmp(hashtab_t h in reqsymcmp() 257 static hashtab_t app_service_names = NULL;
|
/external/selinux/policycoreutils/semodule_deps/ |
D | semodule_deps.c | 55 static unsigned int reqsymhash(hashtab_t h, hashtab_key_t key) in reqsymhash() 70 static int reqsymcmp(hashtab_t h in reqsymcmp() 142 static hashtab_t generate_requires(policydb_t * p) in generate_requires() 152 hashtab_t mods; in generate_requires() 153 hashtab_t reqs; in generate_requires() 191 (hashtab_t) hashtab_search(mods, in generate_requires() 224 static void free_requires(hashtab_t req) in free_requires() 235 hashtab_destroy((hashtab_t) cur->datum); in free_requires() 242 static void output_graphviz(hashtab_t mods, int exclude_base, FILE * f) in output_graphviz() 246 hashtab_t reqs; in output_graphviz() [all …]
|
/external/selinux/libsepol/src/ |
D | hashtab.c | 35 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, in hashtab_create() 37 int (*keycmp) (hashtab_t h, in hashtab_create() 43 hashtab_t p; in hashtab_create() 46 p = (hashtab_t) malloc(sizeof(hashtab_val_t)); 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() 136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() 178 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search() 198 void hashtab_destroy(hashtab_t h) in hashtab_destroy() 222 int hashtab_map(hashtab_t h, in hashtab_map() [all …]
|
D | symtab.c | 14 static unsigned int symhash(hashtab_t h, hashtab_key_t key) in symhash() 29 static int symcmp(hashtab_t h in symcmp()
|
D | policydb.c | 1896 __attribute__ ((unused)), hashtab_t h, in perm_read() 1934 static int common_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in common_read() 2077 static int class_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in class_read() 2183 __attribute__ ((unused)), hashtab_t h, in role_read() 2261 __attribute__ ((unused)), hashtab_t h, in type_read() 2862 static int user_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in user_read() 2947 __attribute__ ((unused)), hashtab_t h, in sens_read() 2990 __attribute__ ((unused)), hashtab_t h, in cat_read() 3029 static int (*read_f[SYM_NUM]) (policydb_t * p, hashtab_t h, 3578 hashtab_t h = p->scope[symnum].table; in scope_read()
|
D | conditional.c | 568 hashtab_t h, in cond_read_bool()
|
D | services.c | 1463 hashtab_t h; in validate_perm() 1466 h = (hashtab_t) p; in validate_perm()
|
D | link.c | 1102 hashtab_t role_tab; in role_fix_callback()
|
D | module_to_cil.c | 296 static int role_list_create(hashtab_t roles_tab) in role_list_create()
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.h | 266 …b(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node, hashtab_t filename_trans_t… 276 …_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_trans_table… 296 …pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, hashtab_t filename_trans_t… 330 … *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range_trans_tabl…
|
D | cil_strpool.c | 43 static hashtab_t cil_strpool_tab = NULL; 45 static unsigned int cil_strpool_hash(hashtab_t h, hashtab_key_t key) in cil_strpool_hash() 60 static int cil_strpool_compare(hashtab_t h __attribute__ ((unused)), hashtab_key_t key1, hashtab_ke… in cil_strpool_compare()
|
D | cil_binary.c | 66 hashtab_t filename_trans_table; 67 hashtab_t range_trans_table; 68 hashtab_t role_trans_table; 69 hashtab_t avrulex_ioctl_table; 78 hashtab_t filename_trans_table; 1116 …sition *typetrans, cond_node_t *cond_node, enum cil_flavor cond_flavor, hashtab_t filename_trans_t… in __cil_typetransition_to_avtab() 1216 …pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, hashtab_t filename_trans_t… in cil_typetransition_to_policydb() 1610 int __cil_avrulex_ioctl_to_hashtable(hashtab_t h, uint16_t kind, uint32_t src, uint32_t tgt, uint32… in __cil_avrulex_ioctl_to_hashtable() 1765 hashtab_t filename_trans_table = args->filename_trans_table; in __cil_cond_to_policydb_helper() 2045 …b(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node, hashtab_t filename_trans_t… in cil_booleanif_to_policydb() [all …]
|
/external/selinux/checkpolicy/ |
D | module_compiler.c | 167 static int role_implicit_bounds(hashtab_t roles_tab, in role_implicit_bounds() 239 hashtab_t roles_tab; in declare_role() 371 static int user_implicit_bounds(hashtab_t users_tab, in user_implicit_bounds() 444 hashtab_t users_tab; in declare_user() 518 hashtab_t types_tab; in get_local_type() 564 hashtab_t roles_tab; in get_local_role()
|