/external/selinux/libsepol/include/sepol/policydb/ |
D | hashtab.h | 25 typedef char *hashtab_key_t; /* generic key type */ typedef 32 hashtab_key_t key; 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, 78 void (*destroy) (hashtab_key_t k, 91 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d, 92 void (*destroy) (hashtab_key_t k, 121 int (*apply) (hashtab_key_t k, 131 int (*apply) (hashtab_key_t k, 134 void (*destroy) (hashtab_key_t k,
|
D | conditional.h | 128 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,
|
D | policydb.h | 630 extern int policydb_role_cache(hashtab_key_t key, 634 extern int policydb_user_cache(hashtab_key_t key, 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/ |
D | hashtab.h | 21 typedef char *hashtab_key_t; /* generic key type */ typedef 28 hashtab_key_t key; 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, 80 void (*destroy) (hashtab_key_t k, 93 extern int hashtab_replace(hashtab_t h, hashtab_key_t k, hashtab_datum_t d, 94 void (*destroy) (hashtab_key_t k, 123 int (*apply) (hashtab_key_t k, 133 int (*apply) (hashtab_key_t k, 136 void (*destroy) (hashtab_key_t k,
|
D | hashtab.c | 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() 83 void (*destroy) (hashtab_key_t k, in hashtab_remove() 115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() 116 void (*destroy) (hashtab_key_t k, in hashtab_replace() 202 int (*apply) (hashtab_key_t k, in hashtab_map() 224 int (*apply) (hashtab_key_t k, in hashtab_map_remove_on_error() 227 void (*destroy) (hashtab_key_t k, in hashtab_map_remove_on_error()
|
/external/selinux/checkpolicy/ |
D | module_compiler.h | 30 hashtab_key_t key, hashtab_datum_t datum, 44 hashtab_key_t key, hashtab_datum_t datum, 68 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id); 73 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id);
|
D | policy_define.c | 525 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms() 556 (hashtab_key_t) perm, in define_common_perms() 608 (hashtab_key_t) id); in define_av_perms() 633 (hashtab_key_t) id); in define_av_perms() 671 (hashtab_key_t) id); in define_av_perms() 679 (hashtab_key_t) id, in define_av_perms() 859 (hashtab_key_t) id); in define_dominance() 1008 static int clone_level(hashtab_key_t key __attribute__ ((unused)), hashtab_datum_t datum, void *arg) in clone_level() 1051 (hashtab_key_t) id); in define_level() 1080 (hashtab_key_t) in define_level() [all …]
|
D | module_compiler.c | 154 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() 1129 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id) in is_id_in_scope() 1176 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id) in is_perm_in_scope()
|
/external/selinux/libsepol/tests/ |
D | test-common.c | 59 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/cil/src/ |
D | android.c | 61 static int ver_map_entry_destroy(__attribute__ ((unused))hashtab_key_t k, in ver_map_entry_destroy() 105 rc = hashtab_insert(args->vers_map, (hashtab_key_t) key, (hashtab_datum_t) datum); in __extract_attributees_helper() 160 static enum plat_flavor __cil_get_plat_flavor(hashtab_t vers_map, hashtab_key_t key) in __cil_get_plat_flavor() 275 hashtab_key_t key; in cil_attrib_type_expr() 286 key = (hashtab_key_t) curr->data; in cil_attrib_type_expr() 311 hashtab_key_t key; in cil_attrib_check_context() 318 key = (hashtab_key_t) ctxt->type_str; in cil_attrib_check_context() 369 if (__cil_get_plat_flavor(args->vers_map, (hashtab_key_t) key) == PLAT_TYPE) { in cil_attrib_roletype() 388 if (__cil_get_plat_flavor(args->vers_map, (hashtab_key_t) key) == PLAT_TYPE) { in cil_attrib_type() 471 if (__cil_get_plat_flavor(args->vers_map, (hashtab_key_t) key) != PLAT_NONE) { in cil_attrib_typealiasactual() [all …]
|
D | cil_strpool.c | 76 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); in cil_strpool_add() 80 int rc = hashtab_insert(cil_strpool_tab, (hashtab_key_t)strpool_ref->str, strpool_ref); in cil_strpool_add() 92 static int cil_strpool_entry_destroy(hashtab_key_t k __attribute__ ((unused)), hashtab_datum_t d, v… in cil_strpool_entry_destroy()
|
D | cil_symtab.h | 77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… 81 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args),
|
D | cil_symtab.c | 88 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… in cil_symtab_insert() 119 *datum = (struct cil_symtab_datum*)hashtab_search(symtab->table, (hashtab_key_t)key); in cil_symtab_get_datum() 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()
|
D | cil_fqn.c | 45 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()
|
D | cil_build_ast.c | 107 … *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_… in cil_gen_node() 127 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node); in cil_gen_node() 130 cil_symtab_get_datum(symtab, (hashtab_key_t)key, &prev) != SEPOL_OK || in cil_gen_node() 214 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)block, (hashtab_key_t)key, CIL_SYM_BLOCK… in cil_gen_block() 403 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)class, (hashtab_key_t)key, CIL_SYM_CLASS… in cil_gen_class() 524 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)perm, (hashtab_key_t)key, CIL_SYM_PERMS,… in cil_gen_perm() 772 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)cp, (hashtab_key_t)key, CIL_SYM_CLASSPER… in cil_gen_classpermission() 879 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)map, (hashtab_key_t)key, CIL_SYM_CLASSES… in cil_gen_map_class() 979 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)common, (hashtab_key_t)key, CIL_SYM_COMM… in cil_gen_common() 1075 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)sid, (hashtab_key_t)key, CIL_SYM_SIDS, C… in cil_gen_sid() [all …]
|
/external/selinux/libsepol/src/ |
D | hashtab.c | 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() 104 void (*destroy) (hashtab_key_t k, in hashtab_remove() 136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() 137 void (*destroy) (hashtab_key_t k, in hashtab_replace() 223 int (*apply) (hashtab_key_t k, in hashtab_map() 245 int (*apply) (hashtab_key_t k, in hashtab_map_remove_on_error() 248 void (*destroy) (hashtab_key_t k, in hashtab_map_remove_on_error()
|
D | link.c | 123 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in permission_copy_callback() 163 (hashtab_key_t) new_id, in permission_copy_callback() 243 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() 307 (hashtab_key_t) new_id, in class_copy_callback() 346 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in role_copy_callback() 395 (hashtab_key_t) new_id, in role_copy_callback() 436 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() 493 (hashtab_key_t) new_id, in type_copy_callback() 531 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in user_copy_callback() 561 (hashtab_key_t) new_id, in user_copy_callback() [all …]
|
D | expand.c | 74 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() 126 (hashtab_key_t) new_id, 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() 224 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback() 410 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() 497 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in constraint_copy_callback() 528 static int type_bounds_copy_callback(hashtab_key_t key, in type_bounds_copy_callback() 558 static int role_bounds_copy_callback(hashtab_key_t key, in role_bounds_copy_callback() 588 static int user_bounds_copy_callback(hashtab_key_t key, in user_bounds_copy_callback() [all …]
|
D | context.c | 169 (hashtab_key_t) user); in context_from_record() 178 (hashtab_key_t) role); in context_from_record() 187 (hashtab_key_t) type); in context_from_record()
|
D | mls.c | 265 hashtab_key_t key; in mls_context_isvalid() 358 (hashtab_key_t) scontextp); in mls_context_to_sid() 384 (hashtab_key_t) in mls_context_to_sid() 401 (hashtab_key_t) in mls_context_to_sid() 623 r = hashtab_search(policydb->range_tr, (hashtab_key_t) &rtr); in mls_compute_sid()
|
D | write.c | 451 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() 573 static int filename_write_helper(hashtab_key_t key, void *data, void *ptr) in filename_write_helper() 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() [all …]
|
D | policydb.c | 923 int policydb_role_cache(hashtab_key_t key in policydb_role_cache() 941 int policydb_user_cache(hashtab_key_t key 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 …]
|
D | hierarchy.c | 466 static int bounds_check_type_callback(hashtab_key_t k __attribute__ ((unused)), in bounds_check_type_callback() 512 static int bounds_check_role_callback(hashtab_key_t k, in bounds_check_role_callback() 555 static int bounds_check_user_callback(hashtab_key_t k, in bounds_check_user_callback() 596 int hierarchy_add_##prefix##_callback(hashtab_key_t k __attribute__ ((unused)), \
|
/external/selinux/python/audit2allow/ |
D | sepolgen-ifgen-attr-helper.c | 41 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/libsepol/cil/test/unit/ |
D | test_cil_symtab.c | 59 …int rc = cil_symtab_insert(test_symtab, (hashtab_key_t)test_name, (struct cil_symtab_datum*)test_b… in test_cil_symtab_insert()
|