/external/selinux/libsepol/include/sepol/policydb/ |
hashtab.h | 45 typedef hashtab_val_t *hashtab_t; typedef 53 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, 56 int (*keycmp) (hashtab_t h, 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, 91 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d, 102 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k); 107 extern void hashtab_destroy(hashtab_t h); 120 extern int hashtab_map(hashtab_t h [all...] |
symtab.h | 34 hashtab_t table; /* hash table (keyed on a string) */
|
conditional.h | 133 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
|
policydb.h | 572 hashtab_t range_tr; 575 hashtab_t filename_trans;
|
/external/selinux/policycoreutils/newrole/ |
hashtab.h | 41 typedef hashtab_val_t *hashtab_t; typedef 55 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, 58 int (*keycmp) (hashtab_t h, 69 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d); 79 extern int hashtab_remove(hashtab_t h, hashtab_key_t k, 93 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d, 104 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k); 109 extern void hashtab_destroy(hashtab_t h); 122 extern int hashtab_map(hashtab_t h [all...] |
hashtab.c | 14 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, 16 int (*keycmp) (hashtab_t h, 22 hashtab_t p; 25 p = (hashtab_t) malloc(sizeof(hashtab_val_t)); 45 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) 82 int hashtab_remove(hashtab_t h, hashtab_key_t key, 115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, 157 hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t key) 177 void hashtab_destroy(hashtab_t h [all...] |
newrole.c | 231 static unsigned int reqsymhash(hashtab_t h, const_hashtab_key_t key) 246 static int reqsymcmp(hashtab_t h 253 static hashtab_t app_service_names = NULL; [all...] |
/external/selinux/libsepol/src/ |
symtab.c | 14 static unsigned int symhash(hashtab_t h, const_hashtab_key_t key) 29 static int symcmp(hashtab_t h
|
hashtab.c | 35 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, 37 int (*keycmp) (hashtab_t h, 43 hashtab_t p; 46 p = (hashtab_t) malloc(sizeof(hashtab_val_t)); 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, 136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, 178 hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t key) 198 void hashtab_destroy(hashtab_t h [all...] |
policydb.c | 730 static unsigned int filenametr_hash(hashtab_t h, const_hashtab_key_t k) 745 static int filenametr_cmp(hashtab_t h __attribute__ ((unused)), 768 static unsigned int rangetr_hash(hashtab_t h, const_hashtab_key_t k) 775 static int rangetr_cmp(hashtab_t h __attribute__ ((unused)), [all...] |
services.c | [all...] |
conditional.c | 571 hashtab_t h,
|
link.c | 1102 hashtab_t role_tab; [all...] |
module_to_cil.c | 300 static int role_list_create(hashtab_t roles_tab) [all...] |
/external/selinux/semodule-utils/semodule_deps/ |
semodule_deps.c | 55 static unsigned int reqsymhash(hashtab_t h, const_hashtab_key_t key) 70 static int reqsymcmp(hashtab_t h 138 static hashtab_t generate_requires(policydb_t * p) 148 hashtab_t mods; 149 hashtab_t reqs; 187 (hashtab_t) hashtab_search(mods, 220 static void free_requires(hashtab_t req) 231 hashtab_destroy((hashtab_t) cur->datum); 238 static void output_graphviz(hashtab_t mods, int exclude_base, FILE * f) 242 hashtab_t reqs [all...] |
/external/selinux/libsepol/cil/src/ |
cil_strpool.c | 46 static hashtab_t cil_strpool_tab = NULL; 48 static unsigned int cil_strpool_hash(hashtab_t h, const_hashtab_key_t key) 63 static int cil_strpool_compare(hashtab_t h __attribute__ ((unused)), const_hashtab_key_t key1, const_hashtab_key_t key2)
|
cil_binary.h | 266 int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_tree_node *node, hashtab_t filename_trans_table); 276 int cil_roletrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_roletransition *roletrans, hashtab_t role_trans_table); 296 int cil_typetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, hashtab_t filename_trans_table); 330 int cil_rangetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, struct cil_rangetransition *rangetrans, hashtab_t range_trans_table);
|
android.c | 23 hashtab_t vers_map; 33 static unsigned int ver_map_hash_val(hashtab_t h, const_hashtab_key_t key) 50 static int ver_map_key_cmp(hashtab_t h __attribute__ ((unused)), 68 static void ver_map_destroy(hashtab_t h) 141 int cil_extract_attributees(struct cil_db *db, hashtab_t vers_map) 159 static enum plat_flavor __cil_get_plat_flavor(hashtab_t vers_map, hashtab_key_t key) 754 static int cil_attributize(struct cil_db *db, hashtab_t vers_map, const char *num) 819 static int cil_attrib_mapping(struct cil_db **db, hashtab_t vers_map, const char *num) 843 hashtab_t ver_map_tab = NULL; 873 hashtab_t ver_map_tab = NULL [all...] |
cil_binary.c | 69 hashtab_t filename_trans_table; 70 hashtab_t range_trans_table; 71 hashtab_t role_trans_table; 72 hashtab_t avrulex_ioctl_table; 81 hashtab_t filename_trans_table; 1126 int __cil_typetransition_to_avtab(policydb_t *pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, cond_node_t *cond_node, enum cil_flavor cond_flavor, hashtab_t filename_trans_table) [all...] |
/external/selinux/checkpolicy/ |
module_compiler.c | 215 static int role_implicit_bounds(hashtab_t roles_tab, 320 hashtab_t roles_tab; 460 static int user_implicit_bounds(hashtab_t users_tab, 554 hashtab_t users_tab; 623 hashtab_t types_tab; 669 hashtab_t roles_tab; [all...] |