Home
last modified time | relevance | path

Searched refs:hashtab_t (Results 1 – 19 of 19) sorted by relevance

/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h45 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,
130 extern void hashtab_map_remove_on_error(hashtab_t h,
[all …]
Dsymtab.h34 hashtab_t table; /* hash table (keyed on a string) */
Dconditional.h133 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
Dpolicydb.h589 hashtab_t range_tr;
592 hashtab_t filename_trans;
/external/selinux/policycoreutils/newrole/
Dhashtab.h41 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,
132 extern void hashtab_map_remove_on_error(hashtab_t h,
[all …]
Dhashtab.c14 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 …]
Dnewrole.c231 static unsigned int reqsymhash(hashtab_t h, const_hashtab_key_t key) in reqsymhash()
246 static int reqsymcmp(hashtab_t h in reqsymcmp()
253 static hashtab_t app_service_names = NULL;
/external/selinux/libsepol/src/
Dhashtab.c35 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 …]
Dsymtab.c14 static unsigned int symhash(hashtab_t h, const_hashtab_key_t key) in symhash()
29 static int symcmp(hashtab_t h in symcmp()
Dpolicydb.c769 static unsigned int filenametr_hash(hashtab_t h, const_hashtab_key_t k) in filenametr_hash()
784 static int filenametr_cmp(hashtab_t h __attribute__ ((unused)), in filenametr_cmp()
807 static unsigned int rangetr_hash(hashtab_t h, const_hashtab_key_t k) in rangetr_hash()
814 static int rangetr_cmp(hashtab_t h __attribute__ ((unused)), in rangetr_cmp()
2046 __attribute__ ((unused)), hashtab_t h, in perm_read()
2079 static int common_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in common_read()
2225 static int class_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in class_read()
2334 static int role_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in role_read()
2413 static int type_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in type_read()
3115 static int user_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in user_read()
[all …]
Dconditional.c571 hashtab_t h, in cond_read_bool()
Dservices.c1527 hashtab_t h; in validate_perm()
1530 h = (hashtab_t) p; in validate_perm()
Dlink.c1102 hashtab_t role_tab; in role_fix_callback()
Dmodule_to_cil.c307 static int role_list_create(hashtab_t roles_tab) in role_list_create()
/external/selinux/libsepol/cil/src/
Dcil_binary.h266 …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…
Dcil_strpool.c46 static hashtab_t cil_strpool_tab = NULL;
48 static unsigned int cil_strpool_hash(hashtab_t h, const_hashtab_key_t key) in cil_strpool_hash()
63 static int cil_strpool_compare(hashtab_t h __attribute__ ((unused)), const_hashtab_key_t key1, cons… in cil_strpool_compare()
Dandroid.c23 hashtab_t vers_map;
33 static unsigned int ver_map_hash_val(hashtab_t h, const_hashtab_key_t key) in ver_map_hash_val()
50 static int ver_map_key_cmp(hashtab_t h __attribute__ ((unused)), in ver_map_key_cmp()
68 static void ver_map_destroy(hashtab_t h) in ver_map_destroy()
142 int cil_extract_attributees(struct cil_db *db, hashtab_t vers_map) in cil_extract_attributees()
160 static enum plat_flavor __cil_get_plat_flavor(hashtab_t vers_map, hashtab_key_t key) in __cil_get_plat_flavor()
754 static int cil_attributize(struct cil_db *db, hashtab_t vers_map, const char *num) in cil_attributize()
848 static int cil_attrib_mapping(struct cil_db **db, hashtab_t vers_map, const char *num) in cil_attrib_mapping()
872 hashtab_t ver_map_tab = NULL; in cil_android_attrib_mapping()
902 hashtab_t ver_map_tab = NULL; in cil_android_attributize()
Dcil_binary.c73 hashtab_t filename_trans_table;
74 hashtab_t range_trans_table;
75 hashtab_t role_trans_table;
76 hashtab_t avrulex_ioctl_table;
85 hashtab_t filename_trans_table;
1144 …sition *typetrans, cond_node_t *cond_node, enum cil_flavor cond_flavor, hashtab_t filename_trans_t… in __cil_typetransition_to_avtab()
1254 …pdb, const struct cil_db *db, struct cil_nametypetransition *typetrans, hashtab_t filename_trans_t… in cil_typetransition_to_policydb()
1734 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()
1958 hashtab_t filename_trans_table = args->filename_trans_table; in __cil_cond_to_policydb_helper()
2238 …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/
Dmodule_compiler.c215 static int role_implicit_bounds(hashtab_t roles_tab, in role_implicit_bounds()
320 hashtab_t roles_tab; in declare_role()
460 static int user_implicit_bounds(hashtab_t users_tab, in user_implicit_bounds()
554 hashtab_t users_tab; in declare_user()
623 hashtab_t types_tab; in get_local_type()
669 hashtab_t roles_tab; in get_local_role()