Home
last modified time | relevance | path

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

12

/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h25 typedef void *hashtab_datum_t; /* generic datum type */ typedef
31 hashtab_datum_t datum;
65 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
77 hashtab_datum_t d,
89 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d,
91 hashtab_datum_t d,
100 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k);
120 hashtab_datum_t d,
130 hashtab_datum_t d,
133 hashtab_datum_t d,
Dconditional.h127 extern int cond_destroy_bool(hashtab_key_t key, hashtab_datum_t datum, void *p);
129 extern int cond_index_bool(hashtab_key_t key, hashtab_datum_t datum,
Dpolicydb.h622 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p);
623 typedef void (*hashtab_destroy_func_t) (hashtab_key_t k, hashtab_datum_t d,
663 hashtab_key_t key, hashtab_datum_t datum,
/external/selinux/policycoreutils/newrole/
Dhashtab.h22 typedef void *hashtab_datum_t; /* generic datum type */ typedef
28 hashtab_datum_t datum;
68 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
80 hashtab_datum_t d,
92 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d,
94 hashtab_datum_t d,
103 extern hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t k);
123 hashtab_datum_t d,
133 hashtab_datum_t d,
136 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.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.c780 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_role_cache()
798 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_user_cache()
843 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index()
857 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index()
872 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index()
887 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in type_index()
905 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in user_index()
922 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in sens_index()
940 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in cat_index()
957 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()
636 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cond_write_bool()
839 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in perm_write()
864 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in common_write()
946 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in class_write()
1040 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in role_write()
1102 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in type_write()
1180 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in user_write()
1238 static int (*write_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum,
[all …]
Dhierarchy.c507 hashtab_datum_t d, void *args) in bounds_check_type_callback()
553 hashtab_datum_t d, void *args) in bounds_check_role_callback()
596 hashtab_datum_t d, void *args) in bounds_check_user_callback()
637 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.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()
/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.c128 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol()
223 declare_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, &value, in declare_role()
427 declare_symbol(SYM_USERS, id, (hashtab_datum_t *) user, &value, in declare_user()
623 hashtab_key_t key, hashtab_datum_t datum, in require_symbol()
723 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy()
887 require_symbol(SYM_ROLES, id, (hashtab_datum_t *) role, in require_role_or_attribute()
957 require_symbol(SYM_TYPES, id, (hashtab_datum_t *) type, in require_type_or_attribute()
1018 require_symbol(SYM_USERS, id, (hashtab_datum_t *) user, in require_user()
1070 require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum, in require_bool_tunable()
1139 retval = require_symbol(SYM_LEVELS, id, (hashtab_datum_t *) level, in require_sens()
[all …]
Dcheckpolicy.c145 static int find_perm(hashtab_key_t key, hashtab_datum_t datum, void *p) in find_perm()
365 static int check_level(hashtab_key_t key, hashtab_datum_t datum, void *arg __attribute__ ((unused))) in check_level()
/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_strpool.c84 static int cil_strpool_entry_destroy(hashtab_key_t k __attribute__ ((unused)), hashtab_datum_t d, v… in cil_strpool_entry_destroy()
Dcil_symtab.h81 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args),
/external/selinux/policycoreutils/sepolgen-ifgen/
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