Home
last modified time | relevance | path

Searched refs:hashtab_datum_t (Results 1 – 25 of 36) sorted by relevance

12

/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h27 typedef void *hashtab_datum_t; /* generic datum type */ typedef
33 hashtab_datum_t datum;
67 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
79 hashtab_datum_t d,
91 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d,
93 hashtab_datum_t d,
102 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
122 hashtab_datum_t d,
132 hashtab_datum_t d,
135 hashtab_datum_t d,
Dconditional.h128 extern int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p);
130 extern int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum,
Dpolicydb.h617 hashtab_datum_t datum,
621 hashtab_datum_t datum,
635 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p);
636 typedef void (*hashtab_destroy_func_t) (hashtab_key_t k, hashtab_datum_t d,
676 hashtab_key_t key, hashtab_datum_t datum,
/external/selinux/policycoreutils/newrole/
Dhashtab.h23 typedef void *hashtab_datum_t; /* generic datum type */ typedef
29 hashtab_datum_t datum;
69 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
81 hashtab_datum_t d,
93 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d,
95 hashtab_datum_t d,
104 extern hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t k);
124 hashtab_datum_t d,
134 hashtab_datum_t d,
137 hashtab_datum_t d,
Dhashtab.c45 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert()
84 hashtab_datum_t d, void *args), void *args) in hashtab_remove()
115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace()
117 hashtab_datum_t d, void *args), void *args) in hashtab_replace()
157 hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t key) in hashtab_search()
203 hashtab_datum_t d, void *args), void *args) in hashtab_map()
225 hashtab_datum_t d, in hashtab_map_remove_on_error()
228 hashtab_datum_t d, in hashtab_map_remove_on_error()
/external/selinux/libsepol/tests/
Dtest-common.c57 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/selinux/libsepol/src/
Dhashtab.c66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert()
105 hashtab_datum_t d, void *args), void *args) in hashtab_remove()
136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace()
138 hashtab_datum_t d, void *args), void *args) in hashtab_replace()
178 hashtab_datum_t hashtab_search(hashtab_t h, const_hashtab_key_t key) in hashtab_search()
224 hashtab_datum_t d, void *args), void *args) in hashtab_map()
246 hashtab_datum_t d, in hashtab_map_remove_on_error()
249 hashtab_datum_t d, in hashtab_map_remove_on_error()
Dlink.c123 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in permission_copy_callback()
164 (hashtab_datum_t) new_perm); in permission_copy_callback()
243 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback()
308 (hashtab_datum_t) new_class); in class_copy_callback()
346 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in role_copy_callback()
396 (hashtab_datum_t) new_role); in role_copy_callback()
436 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback()
494 (hashtab_datum_t) new_type); in type_copy_callback()
531 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in user_copy_callback()
562 (hashtab_datum_t) new_user); in user_copy_callback()
[all …]
Dexpand.c75 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback()
128 (hashtab_datum_t) new_type); in type_copy_callback()
145 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback()
188 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback()
215 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t *) new_perm); in perm_copy_callback()
225 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback()
266 (hashtab_datum_t *) new_common); in common_copy_callback()
411 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback()
461 (hashtab_datum_t *) new_class); in class_copy_callback()
498 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in constraint_copy_callback()
[all …]
Dpolicydb.c863 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_role_cache()
881 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_user_cache()
926 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index()
942 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index()
959 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index()
976 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in type_index()
996 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in user_index()
1014 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in sens_index()
1034 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cat_index()
1053 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dwrite.c444 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in sens_write()
472 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cat_write()
651 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cond_write_bool()
854 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in perm_write()
879 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in common_write()
960 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in class_write()
1054 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in role_write()
1133 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in type_write()
1211 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in user_write()
1269 static int (*write_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dhierarchy.c471 hashtab_datum_t d, void *args) in bounds_check_type_callback()
517 hashtab_datum_t d, void *args) in bounds_check_role_callback()
560 hashtab_datum_t d, void *args) in bounds_check_user_callback()
601 hashtab_datum_t d, void *args) \
Dutil.c66 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) in perm_name()
Dgenusers.c116 id, (hashtab_datum_t) usrdatum)) {
Dconditional.c534 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()
Dusers.c258 (hashtab_datum_t) usrdatum) < 0) in sepol_user_modify()
/external/selinux/checkpolicy/
Dmodule_compiler.h30 hashtab_key_t key, hashtab_datum_t datum,
44 hashtab_key_t key, hashtab_datum_t datum,
Dmodule_compiler.c154 static int create_symbol(uint32_t symbol_type, hashtab_key_t key, hashtab_datum_t datum, in create_symbol()
197 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol()
716 hashtab_key_t key, hashtab_datum_t datum, in require_symbol()
763 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy()
1001 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable()
1053 retval = require_symbol(SYM_LEVELS, id, (hashtab_datum_t *) level, in require_sens()
1091 retval = require_symbol(SYM_CATS, id, (hashtab_datum_t *) cat, in require_cat()
/external/selinux/libsepol/cil/src/
Dcil_fqn.c45 static int __cil_fqn_qualify_decls(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, void… in __cil_fqn_qualify_decls()
71 static int __cil_fqn_qualify_blocks(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, voi… in __cil_fqn_qualify_blocks()
Dcil_symtab.c90 int rc = hashtab_insert(symtab->table, key, (hashtab_datum_t)datum); in cil_symtab_insert()
128 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args), in cil_symtab_map()
134 static int __cil_symtab_destroy_helper(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, … in __cil_symtab_destroy_helper()
Dcil_symtab.h81 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args),
Dcil_strpool.c92 static int cil_strpool_entry_destroy(hashtab_key_t k __attribute__ ((unused)), hashtab_datum_t d, v… in cil_strpool_entry_destroy()
Dandroid.c62 hashtab_datum_t d, __attribute__ ((unused))void *args) in ver_map_entry_destroy()
105 rc = hashtab_insert(args->vers_map, (hashtab_key_t) key, (hashtab_datum_t) datum); in __extract_attributees_helper()
780 static int cil_build_mappings_tree(hashtab_key_t k, hashtab_datum_t d, void *args) in cil_build_mappings_tree()
/external/selinux/python/audit2allow/
Dsepolgen-ifgen-attr-helper.c41 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) in perm_name()
128 static int attribute_callback(hashtab_key_t key, hashtab_datum_t datum, void *datap) in attribute_callback()
/external/selinux/checkpolicy/test/
Ddismod.c292 int display_type_callback(hashtab_key_t key, hashtab_datum_t datum, void *data) in display_type_callback()
497 hashtab_datum_t datum, void *data) in role_display_callback()

12