/external/selinux/libsepol/include/sepol/policydb/ |
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 [all...] |
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,
|
policydb.h | 629 extern int policydb_role_cache(hashtab_key_t key, 633 extern int policydb_user_cache(hashtab_key_t key, 650 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p); 688 hashtab_key_t key, hashtab_datum_t datum,
|
/external/selinux/policycoreutils/newrole/ |
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 [all...] |
hashtab.c | 45 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) 82 int hashtab_remove(hashtab_t h, hashtab_key_t key, 83 void (*destroy) (hashtab_key_t k, 115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, 116 void (*destroy) (hashtab_key_t k, 202 int (*apply) (hashtab_key_t k, 224 int (*apply) (hashtab_key_t k, 227 void (*destroy) (hashtab_key_t k,
|
/external/selinux/checkpolicy/ |
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);
|
policy_define.c | 525 (hashtab_key_t) id, (hashtab_datum_t) comdatum); 556 (hashtab_key_t) perm, 608 (hashtab_key_t) id); 633 (hashtab_key_t) id); 671 (hashtab_key_t) id); 679 (hashtab_key_t) id, 859 (hashtab_key_t) id); 1008 static int clone_level(hashtab_key_t key __attribute__ ((unused)), hashtab_datum_t datum, void *arg) 1051 (hashtab_key_t) id); 1080 (hashtab_key_t) [all...] |
module_compiler.c | 154 static int create_symbol(uint32_t symbol_type, hashtab_key_t key, hashtab_datum_t datum, 197 hashtab_key_t key, hashtab_datum_t datum, 716 hashtab_key_t key, hashtab_datum_t datum, 763 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p 1129 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id) 1176 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id) [all...] |
/external/selinux/libsepol/cil/src/ |
cil_strpool.c | 76 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); 80 int rc = hashtab_insert(cil_strpool_tab, (hashtab_key_t)strpool_ref->str, strpool_ref); 92 static int cil_strpool_entry_destroy(hashtab_key_t k __attribute__ ((unused)), hashtab_datum_t d, void *args __attribute__ ((unused)))
|
cil_symtab.h | 77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct cil_tree_node *node); 81 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args),
|
cil_fqn.c | 45 static int __cil_fqn_qualify_decls(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, void *args) 71 static int __cil_fqn_qualify_blocks(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, void *args)
|
android.c | 53 /* hashtab_key_t is just a const char* underneath */ 61 static int ver_map_entry_destroy(__attribute__ ((unused))hashtab_key_t k, 105 rc = hashtab_insert(args->vers_map, (hashtab_key_t) key, (hashtab_datum_t) datum); 160 static enum plat_flavor __cil_get_plat_flavor(hashtab_t vers_map, hashtab_key_t key) 275 hashtab_key_t key; 286 key = (hashtab_key_t) curr->data; 311 hashtab_key_t key; 318 key = (hashtab_key_t) ctxt->type_str; 369 if (__cil_get_plat_flavor(args->vers_map, (hashtab_key_t) key) == PLAT_TYPE) { 388 if (__cil_get_plat_flavor(args->vers_map, (hashtab_key_t) key) == PLAT_TYPE) [all...] |
cil_symtab.c | 88 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct cil_tree_node *node) 119 *datum = (struct cil_symtab_datum*)hashtab_search(symtab->table, (hashtab_key_t)key); 128 int (*apply) (hashtab_key_t k, hashtab_datum_t d, void *args), 134 static int __cil_symtab_destroy_helper(__attribute__((unused)) hashtab_key_t k, hashtab_datum_t d, __attribute__((unused)) void *args)
|
cil_build_ast.c | 107 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_sym_index sflavor, enum cil_flavor nflavor) 127 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node); 130 cil_symtab_get_datum(symtab, (hashtab_key_t)key, &prev) != SEPOL_OK || 214 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)block, (hashtab_key_t)key, CIL_SYM_BLOCKS, CIL_BLOCK); 403 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)class, (hashtab_key_t)key, CIL_SYM_CLASSES, CIL_CLASS); 524 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)perm, (hashtab_key_t)key, CIL_SYM_PERMS, flavor); 772 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)cp, (hashtab_key_t)key, CIL_SYM_CLASSPERMSETS, CIL_CLASSPERMISSION); 879 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)map, (hashtab_key_t)key, CIL_SYM_CLASSES, CIL_MAP_CLASS); 979 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)common, (hashtab_key_t)key, CIL_SYM_COMMONS, CIL_COMMON); 1075 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)sid, (hashtab_key_t)key, CIL_SYM_SIDS, CIL_SID) [all...] |
/external/selinux/libsepol/cil/test/unit/ |
test_cil_symtab.c | 59 int rc = cil_symtab_insert(test_symtab, (hashtab_key_t)test_name, (struct cil_symtab_datum*)test_block, test_ast_node);
|
/external/selinux/libsepol/tests/ |
test-common.c | 57 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 66 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 76 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 86 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 100 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 110 static int cond_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 120 static int level_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 129 static int cat_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) 138 static int (*test_index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum, void *p) = {
|
/external/selinux/libsepol/src/ |
hashtab.c | 66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) 103 int hashtab_remove(hashtab_t h, hashtab_key_t key, 104 void (*destroy) (hashtab_key_t k, 136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, 137 void (*destroy) (hashtab_key_t k, 223 int (*apply) (hashtab_key_t k, 245 int (*apply) (hashtab_key_t k, 248 void (*destroy) (hashtab_key_t k,
|
context.c | 170 (hashtab_key_t) user); 179 (hashtab_key_t) role); 188 (hashtab_key_t) type);
|
link.c | 123 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 163 (hashtab_key_t) new_id, 243 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 307 (hashtab_key_t) new_id, 346 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 395 (hashtab_key_t) new_id, 436 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 493 (hashtab_key_t) new_id, 531 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 561 (hashtab_key_t) new_id [all...] |
mls.c | 265 hashtab_key_t key; 360 (hashtab_key_t) scontextp); 386 (hashtab_key_t) 403 (hashtab_key_t) 627 r = hashtab_search(policydb->range_tr, (hashtab_key_t) &rtr);
|
expand.c | 76 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 128 (hashtab_key_t) new_id, 146 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, 189 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 226 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 412 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 499 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum, 530 static int type_bounds_copy_callback(hashtab_key_t key, 560 static int role_bounds_copy_callback(hashtab_key_t key, 590 static int user_bounds_copy_callback(hashtab_key_t key [all...] |
policydb.c | 901 int policydb_role_cache(hashtab_key_t key 919 int policydb_user_cache(hashtab_key_t key 965 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 981 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 998 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 1015 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 1035 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 1053 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 1073 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) 1092 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum [all...] |
write.c | 446 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 474 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 568 static int filename_write_helper(hashtab_key_t key, void *data, void *ptr) 653 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 856 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 881 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 962 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 1056 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 1135 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) 1213 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr [all...] |
hierarchy.c | 470 static int bounds_check_type_callback(hashtab_key_t k __attribute__ ((unused)), 516 static int bounds_check_role_callback(hashtab_key_t k, 559 static int bounds_check_user_callback(hashtab_key_t k, 600 int hierarchy_add_##prefix##_callback(hashtab_key_t k __attribute__ ((unused)), \
|
/external/selinux/python/audit2allow/ |
sepolgen-ifgen-attr-helper.c | 41 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) 128 static int attribute_callback(hashtab_key_t key, hashtab_datum_t datum, void *datap)
|