Home
last modified time | relevance | path

Searched refs:symtab_t (Results 1 – 22 of 22) sorted by relevance

/third_party/selinux/libsepol/cil/src/
Dcil_copy_ast.h40 int cil_copy_block(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
41 int cil_copy_blockabstract(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
42 int cil_copy_blockinherit(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
43 int cil_copy_perm(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
44 int cil_copy_class(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
45 int cil_copy_classorder(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
46 int cil_copy_classmapping(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
47 int cil_copy_permset(struct cil_db *db, void *data, void **copy, symtab_t *symtab);
52 …sspermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab);
53 …_((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab);
[all …]
Dcil_copy_ast.c88 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_node()
100 int cil_copy_block(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sy… in cil_copy_block()
125 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_blockabstract()
139 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_blockinherit()
154 int cil_copy_policycap(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t in cil_copy_policycap()
172 int cil_copy_perm(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sym… in cil_copy_perm()
225 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_classmapping()
242 int cil_copy_class(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *sy… in cil_copy_class()
264 …e__((unused)) struct cil_db *db, void *data, void **copy, __attribute__((unused)) symtab_t *symtab) in cil_copy_classorder()
279 …asspermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) in cil_copy_classpermission()
[all …]
Dcil_symtab.h42 symtab_t *symtab;
73 void cil_symtab_init(symtab_t *symtab, unsigned int size);
77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c…
79 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum);
80 int cil_symtab_map(symtab_t *symtab,
83 void cil_symtab_destroy(symtab_t *symtab);
Dcil_symtab.c54 void cil_symtab_init(symtab_t *symtab, unsigned int size) in cil_symtab_init()
88 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… in cil_symtab_insert()
108 symtab_t *symtab = datum->symtab; in cil_symtab_remove_datum()
119 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum) in cil_symtab_get_datum()
129 int cil_symtab_map(symtab_t *symtab, in cil_symtab_map()
143 void cil_symtab_destroy(symtab_t *symtab) in cil_symtab_destroy()
Dcil_internal.h335 symtab_t symtab[CIL_SYM_NUM];
347 symtab_t symtab[CIL_SYM_NUM];
362 symtab_t symtab[CIL_SYM_NUM];
379 symtab_t perms;
884 symtab_t symtab[CIL_SYM_NUM];
908 symtab_t symtab[CIL_SYM_NUM];
992 void cil_symtab_array_init(symtab_t symtab[], const int symtab_sizes[CIL_SYM_NUM]);
993 void cil_symtab_array_destroy(symtab_t symtab[]);
995 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index);
Dcil_resolve_ast.c78 symtab_t *symtab; in __cil_insert_name()
113 static int __cil_resolve_perms(symtab_t *class_symtab, symtab_t *common_symtab, struct cil_list *pe… in __cil_resolve_perms()
162 symtab_t *common_symtab = NULL; in cil_resolve_classperms()
3161 symtab_t *s = datum->symtab; in cil_resolve_call_args()
4243 symtab_t *symtab = &((struct cil_root *)db->ast->root->data)->symtab[sym_index]; in __cil_resolve_name_with_root()
4251 symtab_t *symtab = NULL; in __cil_resolve_name_with_parents()
4374 symtab_t *symtab = NULL; in cil_resolve_name_keep_aliases()
Dcil_build_ast.h40 int cil_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t key, struct cil_symta…
Dcil_post.c2062 …_expression(struct cil_list *perms, enum cil_flavor flavor, symtab_t *class_symtab, symtab_t *comm… in __evaluate_perm_expression()
2103 symtab_t *common_symtab = NULL; in __evaluate_classperms()
Dcil.c1899 void cil_symtab_array_init(symtab_t symtab[], const int symtab_sizes[CIL_SYM_NUM]) in cil_symtab_array_init()
1907 void cil_symtab_array_destroy(symtab_t symtab[]) in cil_symtab_array_destroy()
1948 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) in cil_get_symtab()
Dcil_build_ast.c109 int cil_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t key, struct cil_symta… in cil_add_decl_to_symtab()
146 symtab_t *symtab = NULL; in cil_gen_node()
/third_party/selinux/libsepol/cil/test/unit/
Dtest_cil.c61 symtab_t *symtab = NULL; in test_cil_get_symtab_block()
79 symtab_t *symtab = NULL; in test_cil_get_symtab_class()
97 symtab_t *symtab = NULL; in test_cil_get_symtab_root()
115 symtab_t *symtab = NULL; in test_cil_get_symtab_flavor_neg()
133 symtab_t *symtab = NULL; in test_cil_get_symtab_null_neg()
150 symtab_t *symtab = NULL; in test_cil_get_symtab_node_null_neg()
164 symtab_t *symtab = NULL; in test_cil_get_symtab_parent_null_neg()
Dtest_cil_copy_ast.c164 symtab_t sym; in test_cil_copy_block()
197 symtab_t sym; in test_cil_copy_perm()
232 symtab_t sym; in test_cil_copy_class()
259 symtab_t sym; in test_cil_copy_common()
295 symtab_t sym; in test_cil_copy_classcommon()
324 symtab_t sym; in test_cil_copy_sid()
351 symtab_t sym; in test_cil_copy_sidcontext()
380 symtab_t sym; in test_cil_copy_user()
407 symtab_t sym; in test_cil_copy_role()
434 symtab_t sym; in test_cil_copy_userrole()
[all …]
Dtest_cil_symtab.c40 symtab_t *test_symtab = NULL; in test_cil_symtab_insert()
/third_party/selinux/libsepol/include/sepol/policydb/
Dsymtab.h36 } symtab_t; typedef
38 extern int symtab_init(symtab_t *, unsigned int size);
39 extern void symtab_destroy(symtab_t *);
Dpolicydb.h109 symtab_t permissions; /* common permissions */
117 symtab_t permissions; /* class-specific permission symbol table */
469 symtab_t symtab[SYM_NUM];
523 symtab_t symtab[SYM_NUM];
556 symtab_t scope[SYM_NUM];
664 extern void symtabs_destroy(symtab_t * symtab);
/third_party/selinux/libsepol/src/
Dsymtab.c40 int symtab_init(symtab_t * s, unsigned int size) in symtab_init()
49 void symtab_destroy(symtab_t * s) in symtab_destroy()
Dpolicydb_validate.c146 static int validate_scopes(sepol_handle_t *handle, symtab_t scopes[], avrule_block_t *block) in validate_scopes()
677 static int validate_symtabs(sepol_handle_t *handle, symtab_t symtabs[], validate_t flavors[]) in validate_symtabs()
Dlink.c1160 symtab_t *typetab; in type_fix_callback()
1208 symtab_t *usertab; in user_fix_callback()
1608 static int copy_identifiers(link_state_t * state, symtab_t * src_symtab, in copy_identifiers()
Dexpand.c224 symtab_t *s; in perm_copy_callback()
229 s = (symtab_t *) data; in perm_copy_callback()
Dkernel_to_cil.c426 static char *class_or_common_perms_to_str(symtab_t *permtab) in class_or_common_perms_to_str()
Dkernel_to_conf.c510 static char *class_or_common_perms_to_str(symtab_t *permtab) in class_or_common_perms_to_str()
Dpolicydb.c1577 void symtabs_destroy(symtab_t * symtab) in symtabs_destroy()