Home
last modified time | relevance | path

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

/external/libsepol/include/sepol/policydb/
Dhashtab.h23 typedef void *hashtab_datum_t; /* generic datum type */ typedef
29 hashtab_datum_t datum;
63 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
75 hashtab_datum_t d,
87 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d,
89 hashtab_datum_t d,
98 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k);
118 hashtab_datum_t d,
128 hashtab_datum_t d,
131 hashtab_datum_t d,
Dconditional.h124 extern int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p);
126 extern int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum,
Dpolicydb.h598 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p);
599 typedef void (*hashtab_destroy_func_t) (hashtab_key_t k, hashtab_datum_t d,
639 hashtab_key_t key, hashtab_datum_t datum,
/external/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/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.c150 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback()
203 (hashtab_datum_t) new_type); in type_copy_callback()
220 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback()
263 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback()
290 ret = hashtab_insert(s->table, new_id, (hashtab_datum_t *) new_perm); in perm_copy_callback()
300 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback()
341 (hashtab_datum_t *) new_common); in common_copy_callback()
486 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback()
536 (hashtab_datum_t *) new_class); in class_copy_callback()
573 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in constraint_copy_callback()
[all …]
Dpolicydb.c766 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_role_cache()
784 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_user_cache()
829 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index()
843 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index()
858 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index()
873 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in type_index()
891 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in user_index()
908 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in sens_index()
926 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cat_index()
943 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dhierarchy.c125 static int check_type_hierarchy_callback(hashtab_key_t k, hashtab_datum_t d, in check_type_hierarchy_callback()
404 hashtab_datum_t d, void *args) in check_role_hierarchy_callback()
430 hashtab_datum_t d, void *args) in check_user_hierarchy_callback()
Dutil.c62 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) in perm_name()
Dwrite.c411 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in sens_write()
439 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cat_write()
603 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cond_write_bool()
806 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in perm_write()
831 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in common_write()
913 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in class_write()
1007 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in role_write()
1069 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in type_write()
1147 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in user_write()
1205 static int (*write_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dgenusers.c115 id, (hashtab_datum_t) usrdatum)) {
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()
Dservices.c1385 static int validate_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) in validate_perm()
1410 static int validate_class(hashtab_key_t key, hashtab_datum_t datum, void *p) in validate_class()
/external/checkpolicy/
Dmodule_compiler.h30 hashtab_key_t key, hashtab_datum_t datum,
44 hashtab_key_t key, hashtab_datum_t datum,
Dmodule_compiler.c127 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol()
222 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value, in declare_role()
426 declare_symbol(SYM_USERS, id, (hashtab_datum_t *) user, &value, in declare_user()
622 hashtab_key_t key, hashtab_datum_t datum, in require_symbol()
722 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy()
886 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, in require_role_or_attribute()
956 require_symbol(SYM_TYPES, id, (hashtab_datum_t *) type, in require_type_or_attribute()
1017 require_symbol(SYM_USERS, id, (hashtab_datum_t *) user, in require_user()
1069 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable()
1138 retval = require_symbol(SYM_LEVELS, id, (hashtab_datum_t *) level, in require_sens()
[all …]
Dcheckpolicy.c144 static int find_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) in find_perm()
364 static int check_level(hashtab_key_t key, hashtab_datum_t datum, void *arg) in check_level()
Dpolicy_define.c514 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms()
546 (hashtab_datum_t) perdatum); in define_common_perms()
669 (hashtab_datum_t) perdatum); in define_av_perms()
997 static int clone_level(hashtab_key_t key, hashtab_datum_t datum, void *arg) in clone_level()
2125 static int dominate_role_recheck(hashtab_key_t key, hashtab_datum_t datum, in dominate_role_recheck()
2202 (hashtab_datum_t) role, &role->s.value, in define_role_dom()
2274 static int role_val_to_name_helper(hashtab_key_t key, hashtab_datum_t datum, in role_val_to_name_helper()
/external/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()
/external/sepolicy/tools/
Dcheck_seapp.c224 hashtab_datum_t dat; in check_type()