Home
last modified time | relevance | path

Searched refs:hashtab_datum_t (Results 1 – 25 of 35) 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.h631 hashtab_datum_t datum,
635 hashtab_datum_t datum,
653 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p);
691 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.c59 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in common_test_index()
68 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in class_test_index()
78 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in role_test_index()
88 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in type_test_index()
102 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in user_test_index()
112 static int cond_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in cond_test_index()
122 static int level_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in level_test_index()
131 static int cat_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in cat_test_index()
140 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.c74 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback()
127 (hashtab_datum_t) new_type); in type_copy_callback()
144 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback()
187 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback()
214 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t *) new_perm); in perm_copy_callback()
224 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback()
265 (hashtab_datum_t *) new_common); in common_copy_callback()
410 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback()
460 (hashtab_datum_t *) new_class); in class_copy_callback()
497 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in constraint_copy_callback()
[all …]
Dpolicydb.c924 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_role_cache()
942 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_user_cache()
987 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index()
1003 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index()
1020 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index()
1037 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in type_index()
1057 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in user_index()
1075 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in sens_index()
1095 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cat_index()
1114 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dwrite.c451 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in sens_write()
479 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cat_write()
658 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cond_write_bool()
861 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in perm_write()
886 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in common_write()
967 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in class_write()
1068 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in role_write()
1147 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in type_write()
1225 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in user_write()
1283 static int (*write_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dhierarchy.c467 hashtab_datum_t d, void *args) in bounds_check_type_callback()
513 hashtab_datum_t d, void *args) in bounds_check_role_callback()
556 hashtab_datum_t d, void *args) in bounds_check_user_callback()
597 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()
Dusers.c253 (hashtab_datum_t) usrdatum) < 0) in sepol_user_modify()
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()
/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()
1002 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable()
1054 retval = require_symbol(SYM_LEVELS, id, (hashtab_datum_t *) level, in require_sens()
1092 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()
779 static int cil_build_mappings_tree(hashtab_key_t k, hashtab_datum_t d, void *args) in cil_build_mappings_tree()
Dcil_find.c245 static int __add_classes_from_map_perms(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d,… in __add_classes_from_map_perms()
/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.c317 int display_type_callback(hashtab_key_t key, hashtab_datum_t datum, void *data) in display_type_callback()
522 hashtab_datum_t datum, void *data) in role_display_callback()

12