Home
last modified time | relevance | path

Searched refs:hashtab_key_t (Results 1 – 25 of 43) sorted by relevance

12

/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h24 typedef char *hashtab_key_t; /* generic key type */ typedef
30 hashtab_key_t key;
39 unsigned int (*hash_value) (struct hashtab_val * h, hashtab_key_t key); /* hash function */
40 …int (*keycmp) (struct hashtab_val * h, hashtab_key_t key1, hashtab_key_t key2); /* key comparison …
52 const hashtab_key_t
55 const hashtab_key_t key1,
56 const hashtab_key_t key2),
65 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
75 extern int hashtab_remove(hashtab_t h, hashtab_key_t k,
76 void (*destroy) (hashtab_key_t k,
[all …]
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,
/external/selinux/policycoreutils/newrole/
Dhashtab.h21 typedef char *hashtab_key_t; /* generic key type */ typedef
27 hashtab_key_t key;
36 unsigned int (*hash_value) (struct hashtab_val * h, hashtab_key_t key); /* hash function */
37 …int (*keycmp) (struct hashtab_val * h, hashtab_key_t key1, hashtab_key_t key2); /* key comparison …
55 const hashtab_key_t
58 const hashtab_key_t key1,
59 const hashtab_key_t key2),
68 extern int hashtab_insert(hashtab_t h, hashtab_key_t k, hashtab_datum_t d);
78 extern int hashtab_remove(hashtab_t h, hashtab_key_t k,
79 void (*destroy) (hashtab_key_t k,
[all …]
Dhashtab.c15 const hashtab_key_t key), in hashtab_create()
17 const hashtab_key_t key1, in hashtab_create()
18 const hashtab_key_t key2), in hashtab_create()
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()
157 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search()
202 int (*apply) (hashtab_key_t k, in hashtab_map()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_strpool.c45 static unsigned int cil_strpool_hash(hashtab_t h, hashtab_key_t key) in cil_strpool_hash()
60 …t cil_strpool_compare(hashtab_t h __attribute__ ((unused)), hashtab_key_t key1, hashtab_key_t key2) in cil_strpool_compare()
71 strpool_ref = hashtab_search(cil_strpool_tab, (hashtab_key_t)str); in cil_strpool_add()
75 int rc = hashtab_insert(cil_strpool_tab, (hashtab_key_t)strpool_ref->str, strpool_ref); in cil_strpool_add()
84 static int cil_strpool_entry_destroy(hashtab_key_t k __attribute__ ((unused)), hashtab_datum_t d, v… in cil_strpool_entry_destroy()
Dcil_symtab.h77 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),
Dcil_symtab.c88 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()
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_binary.c382 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
1178 rc = hashtab_insert(filename_trans_table, (hashtab_key_t)new, &(new->otype)); in __cil_typetransition_to_avtab()
1182 otype = hashtab_search(filename_trans_table, (hashtab_key_t)new); in __cil_typetransition_to_avtab()
1552 int __cil_avrulex_ioctl_to_policydb(hashtab_key_t k, hashtab_datum_t datum, void *args) in __cil_avrulex_ioctl_to_policydb()
1638 hashtab_xperms = (ebitmap_t *)hashtab_search(h, (hashtab_key_t)avtab_key); in __cil_avrulex_ioctl_to_hashtable()
1646 rc = hashtab_insert(h, (hashtab_key_t)avtab_key, hashtab_xperms); in __cil_avrulex_ioctl_to_hashtable()
2197 rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role)); in cil_roletrans_to_policydb()
2201 new_role = hashtab_search(role_trans_table, (hashtab_key_t)new); in cil_roletrans_to_policydb()
2983 rc = hashtab_insert(range_trans_table, (hashtab_key_t)new, &(new->target_range)); in cil_rangetransition_to_policydb()
2987 o_range = hashtab_search(range_trans_table, (hashtab_key_t)new); in cil_rangetransition_to_policydb()
[all …]
Dcil_build_ast.c85 … *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_… in cil_gen_node()
104 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node); in cil_gen_node()
181 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)block, (hashtab_key_t)key, CIL_SYM_BLOCK… in cil_gen_block()
374 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)class, (hashtab_key_t)key, CIL_SYM_CLASS… in cil_gen_class()
488 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)perm, (hashtab_key_t)key, CIL_SYM_PERMS,… in cil_gen_perm()
733 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)cp, (hashtab_key_t)key, CIL_SYM_CLASSPER… in cil_gen_classpermission()
842 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)map, (hashtab_key_t)key, CIL_SYM_CLASSES… in cil_gen_map_class()
944 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)common, (hashtab_key_t)key, CIL_SYM_COMM… in cil_gen_common()
1038 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)sid, (hashtab_key_t)key, CIL_SYM_SIDS, C… in cil_gen_sid()
1210 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)user, (hashtab_key_t)key, CIL_SYM_USERS,… in cil_gen_user()
[all …]
/external/selinux/libsepol/src/
Dhashtab.c36 const hashtab_key_t key), in hashtab_create()
38 const hashtab_key_t key1, in hashtab_create()
39 const hashtab_key_t key2), in hashtab_create()
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()
178 hashtab_datum_t hashtab_search(hashtab_t h, const hashtab_key_t key) in hashtab_search()
223 int (*apply) (hashtab_key_t k, in hashtab_map()
[all …]
Dsymtab.c14 static unsigned int symhash(hashtab_t h, hashtab_key_t key) in symhash()
30 __attribute__ ((unused)), hashtab_key_t key1, in symcmp()
31 hashtab_key_t key2) in symcmp()
Dlink.c123 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 …]
Dusers.c138 (const hashtab_key_t)cname); in sepol_user_modify()
162 (const hashtab_key_t)roles[i]); in sepol_user_modify()
298 (const hashtab_key_t)cname) != NULL); in sepol_user_exists()
327 (const hashtab_key_t)cname); in sepol_user_query()
Dexpand.c74 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 …]
Dcontext.c169 (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()
Dpolicydb.c779 int policydb_role_cache(hashtab_key_t key in policydb_role_cache()
797 int policydb_user_cache(hashtab_key_t key 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 …]
Droles.c17 (const hashtab_key_t)role) != NULL); in sepol_role_exists()
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 …]
/external/selinux/checkpolicy/
Dmodule_compiler.h30 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);
Dpolicy_define.c517 (hashtab_key_t) id, (hashtab_datum_t) comdatum); in define_common_perms()
548 (hashtab_key_t) perm, in define_common_perms()
600 (hashtab_key_t) id); in define_av_perms()
625 (hashtab_key_t) id); in define_av_perms()
663 (hashtab_key_t) id); in define_av_perms()
671 (hashtab_key_t) id, in define_av_perms()
851 (hashtab_key_t) id); in define_dominance()
1000 static int clone_level(hashtab_key_t key __attribute__ ((unused)), hashtab_datum_t datum, void *arg) in clone_level()
1043 (hashtab_key_t) id); in define_level()
1072 (hashtab_key_t) in define_level()
[all …]
/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/policycoreutils/semodule_deps/
Dsemodule_deps.c55 static unsigned int reqsymhash(hashtab_t h, hashtab_key_t key) in reqsymhash()
71 __attribute__ ((unused)), hashtab_key_t key1, in reqsymcmp()
72 hashtab_key_t key2) in reqsymcmp()
/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/libsepol/cil/test/unit/
Dtest_cil_symtab.c59 …int rc = cil_symtab_insert(test_symtab, (hashtab_key_t)test_name, (struct cil_symtab_datum*)test_b… in test_cil_symtab_insert()

12