HomeSort by relevance Sort by last modified time
    Searched refs:hashtab_key_t (Results 1 - 25 of 42) sorted by null

1 2

  /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 612 extern int policydb_role_cache(hashtab_key_t key,
616 extern int policydb_user_cache(hashtab_key_t key,
631 extern int scope_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p);
632 typedef void (*hashtab_destroy_func_t) (hashtab_key_t k, hashtab_datum_t d,
672 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 521 (hashtab_key_t) id, (hashtab_datum_t) comdatum);
552 (hashtab_key_t) perm,
604 (hashtab_key_t) id);
629 (hashtab_key_t) id);
667 (hashtab_key_t) id);
675 (hashtab_key_t) id,
855 (hashtab_key_t) id);
1004 static int clone_level(hashtab_key_t key __attribute__ ((unused)), hashtab_datum_t datum, void *arg)
1047 (hashtab_key_t) id);
1076 (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
1128 int is_id_in_scope(uint32_t symbol_type, hashtab_key_t id)
1175 int is_perm_in_scope(hashtab_key_t perm_id, hashtab_key_t class_id)
    [all...]
  /system/sepolicy/tools/sepolicy-analyze/
booleans.c 7 static int list_booleans(hashtab_key_t k,
  /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,
104 rc = hashtab_insert(args->vers_map, (hashtab_key_t) key, (hashtab_datum_t) datum);
159 static enum plat_flavor __cil_get_plat_flavor(hashtab_t vers_map, hashtab_key_t key)
270 hashtab_key_t key;
281 key = (hashtab_key_t) curr->data;
306 hashtab_key_t key;
313 key = (hashtab_key_t) ctxt->type_str;
364 if (__cil_get_plat_flavor(args->vers_map, (hashtab_key_t) key) == PLAT_TYPE) {
383 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 85 int cil_gen_node(__attribute__((unused)) 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)
104 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node);
180 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)block, (hashtab_key_t)key, CIL_SYM_BLOCKS, CIL_BLOCK);
369 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)class, (hashtab_key_t)key, CIL_SYM_CLASSES, CIL_CLASS);
490 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)perm, (hashtab_key_t)key, CIL_SYM_PERMS, flavor);
738 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)cp, (hashtab_key_t)key, CIL_SYM_CLASSPERMSETS, CIL_CLASSPERMISSION);
845 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)map, (hashtab_key_t)key, CIL_SYM_CLASSES, CIL_MAP_CLASS);
945 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)common, (hashtab_key_t)key, CIL_SYM_COMMONS, CIL_COMMON);
1041 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)sid, (hashtab_key_t)key, CIL_SYM_SIDS, CIL_SID);
1210 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)user, (hashtab_key_t)key, CIL_SYM_USERS, CIL_USER)
    [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 75 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum,
127 (hashtab_key_t) new_id,
145 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum,
188 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum,
225 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum,
411 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum,
498 static int constraint_copy_callback(hashtab_key_t key, hashtab_datum_t datum,
529 static int type_bounds_copy_callback(hashtab_key_t key,
559 static int role_bounds_copy_callback(hashtab_key_t key,
589 static int user_bounds_copy_callback(hashtab_key_t key
    [all...]
policydb.c 862 int policydb_role_cache(hashtab_key_t key
880 int policydb_user_cache(hashtab_key_t key
926 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
942 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
959 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
976 static int type_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
996 static int user_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
1014 static int sens_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
1034 static int cat_index(hashtab_key_t key, hashtab_datum_t datum, void *datap)
1053 static int (*index_f[SYM_NUM]) (hashtab_key_t key, hashtab_datum_t datum
    [all...]
write.c 444 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
472 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
566 static int filename_write_helper(hashtab_key_t key, void *data, void *ptr)
651 static int cond_write_bool(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
854 static int perm_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
879 static int common_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
960 static int class_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
1054 static int role_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
1133 static int type_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr)
1211 static int user_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr
    [all...]
  /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)

Completed in 2522 milliseconds

1 2