/external/selinux/libsepol/cil/src/ |
D | cil_symtab.h | 38 struct cil_symtab_datum { struct 45 #define DATUM(d) ((struct cil_symtab_datum *)(d)) argument 74 void cil_symtab_datum_init(struct cil_symtab_datum *datum); 75 void cil_symtab_datum_destroy(struct cil_symtab_datum *datum); 76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node); 77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… 78 void cil_symtab_remove_datum(struct cil_symtab_datum *datum); 79 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum);
|
D | cil_internal.h | 338 struct cil_symtab_datum datum; 359 struct cil_symtab_datum datum; 364 struct cil_symtab_datum datum; 370 struct cil_symtab_datum datum; 394 struct cil_symtab_datum datum; 415 struct cil_symtab_datum datum; 425 struct cil_symtab_datum datum; 441 struct cil_symtab_datum datum; 450 struct cil_symtab_datum datum; 495 struct cil_symtab_datum datum; [all …]
|
D | cil_resolve_ast.c | 77 struct cil_symtab_datum *datum = NULL; in __cil_insert_name() 103 cil_symtab_insert(symtab, key, (struct cil_symtab_datum *)name, ast_node); in __cil_insert_name() 126 struct cil_symtab_datum *perm_datum = NULL; in __cil_resolve_perms() 156 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms() 187 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms_set() 239 struct cil_symtab_datum *datum; in cil_resolve_classpermissionset() 268 void cil_type_used(struct cil_symtab_datum *datum, int used) in cil_type_used() 287 struct cil_symtab_datum *obj_datum = NULL; in cil_resolve_permissionx() 308 struct cil_symtab_datum *src_datum = NULL; in cil_resolve_avrule() 309 struct cil_symtab_datum *tgt_datum = NULL; in cil_resolve_avrule() [all …]
|
D | cil_find.c | 45 static int cil_type_match_any(struct cil_symtab_datum *d1, struct cil_symtab_datum *d2) in cil_type_match_any() 81 …tatic int cil_type_matches(ebitmap_t *matches, struct cil_symtab_datum *d1, struct cil_symtab_datu… in cil_type_matches() 118 static int cil_self_match_any(struct cil_symtab_datum *s1, struct cil_symtab_datum *s2, struct cil_… in cil_self_match_any() 297 struct cil_symtab_datum *s1 = avrule->src; in cil_find_matching_avrule() 298 struct cil_symtab_datum *t1 = avrule->tgt; in cil_find_matching_avrule() 299 struct cil_symtab_datum *s2 = target->src; in cil_find_matching_avrule() 300 struct cil_symtab_datum *t2 = target->tgt; in cil_find_matching_avrule()
|
D | cil_symtab.c | 62 void cil_symtab_datum_init(struct cil_symtab_datum *datum) in cil_symtab_datum_init() 70 void cil_symtab_datum_destroy(struct cil_symtab_datum *datum) in cil_symtab_datum_destroy() 76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node) in cil_symtab_datum_remove_node() 88 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… in cil_symtab_insert() 105 void cil_symtab_remove_datum(struct cil_symtab_datum *datum) in cil_symtab_remove_datum() 117 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum) in cil_symtab_get_datum() 119 *datum = (struct cil_symtab_datum*)hashtab_search(symtab->table, (hashtab_key_t)key); in cil_symtab_get_datum() 136 struct cil_symtab_datum *datum = d; in __cil_symtab_destroy_helper()
|
D | cil_fqn.c | 48 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)d; in __cil_fqn_qualify_decls() 76 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)block; in __cil_fqn_qualify_blocks()
|
D | cil_copy_ast.c | 102 struct cil_symtab_datum *datum = NULL; in cil_copy_block() 149 struct cil_symtab_datum *datum = NULL; in cil_copy_policycap() 167 struct cil_symtab_datum *datum = NULL; in cil_copy_perm() 238 struct cil_symtab_datum *datum = NULL; in cil_copy_class() 275 struct cil_symtab_datum *datum = NULL; in cil_copy_classpermission() 329 struct cil_symtab_datum *datum = NULL; in cil_copy_sid() 381 struct cil_symtab_datum *datum = NULL; in cil_copy_user() 400 struct cil_symtab_datum *datum = NULL; in cil_copy_userattribute() 505 struct cil_symtab_datum *datum = NULL; in cil_copy_role() 538 struct cil_symtab_datum *datum = NULL; in cil_copy_roleattribute() [all …]
|
D | cil_tree.c | 225 struct cil_symtab_datum *datum; in cil_tree_node_destroy() 359 stack[pos] = ((struct cil_symtab_datum *)curr->data)->name; in cil_expr_to_string() 648 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)context->type)->name); in cil_tree_print_context() 744 struct cil_symtab_datum *datum = NULL; in cil_tree_print_node() 808 struct cil_symtab_datum *datum = NULL; in cil_tree_print_node() 839 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)roletrans->tgt)->name); in cil_tree_print_node() 863 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)roleallow->src)->name); in cil_tree_print_node() 869 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)roleallow->tgt)->name); in cil_tree_print_node() 1094 cil_log(CIL_INFO, "TYPEPERMISSIVE: %s\n", ((struct cil_symtab_datum *)typeperm->type)->name); in cil_tree_print_node() 1106 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->src)->name); in cil_tree_print_node() [all …]
|
D | cil_resolve_ast.h | 94 …(struct cil_call *call, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum); 101 …node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum); 102 …node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum);
|
D | cil_post.c | 147 struct cil_symtab_datum *d = curr->data; in cil_verify_is_list() 875 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap() 927 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_user_to_bitmap() 975 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap() 1044 static int __cil_permx_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((… in __cil_permx_to_bitmap() 1067 static int __cil_perm_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((u… in __cil_perm_to_bitmap() 1126 static int __cil_cat_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) in __cil_cat_to_bitmap() 1174 struct cil_symtab_datum *d1 = i1->data; in __cil_cat_expr_range_to_bitmap_helper() 1175 struct cil_symtab_datum *d2 = i2->data; in __cil_cat_expr_range_to_bitmap_helper() 1596 static int __cil_role_assign_types(struct cil_role *role, struct cil_symtab_datum *datum) in __cil_role_assign_types() [all …]
|
D | cil_verify.h | 64 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list);
|
D | cil_build_ast.c | 89 int cil_is_datum_multiple_decl(__attribute__((unused)) struct cil_symtab_datum *cur, in cil_is_datum_multiple_decl() 90 __attribute__((unused)) struct cil_symtab_datum *old, in cil_is_datum_multiple_decl() 107 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… in cil_gen_node() 111 struct cil_symtab_datum *prev; 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() [all …]
|
D | cil_binary.c | 83 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t… in __cil_get_sepol_user_datum() 94 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t… in __cil_get_sepol_role_datum() 105 static int __cil_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t… in __cil_get_sepol_type_datum() 116 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum() 127 static int __cil_get_sepol_cat_datum(policydb_t *pdb, struct cil_symtab_datum *datum, cat_datum_t *… in __cil_get_sepol_cat_datum() 138 static int __cil_get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum… in __cil_get_sepol_level_datum() 149 static int __cil_expand_user(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_user() 177 static int __cil_expand_role(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_role() 203 static int __cil_expand_type(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_type() 1325 …expand_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datu… in __cil_avrule_expand_helper() [all …]
|
D | cil_verify.c | 327 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list) in cil_verify_no_self_reference() 333 struct cil_symtab_datum *d = i->data; in cil_verify_no_self_reference() 1278 struct cil_symtab_datum *perm_datum; in __cil_verify_permissionx() 1548 struct cil_symtab_datum *orig, in __cil_verify_classperms() 1549 struct cil_symtab_datum *parent, in __cil_verify_classperms() 1550 struct cil_symtab_datum *cur, in __cil_verify_classperms()
|
D | android.c | 223 rc = cil_gen_node(args->db, new_ast_node, (struct cil_symtab_datum *) typeattr, in __cil_attrib_convert_type() 244 struct cil_symtab_datum *datum = (struct cil_symtab_datum *) node->data; in __cil_attrib_swap_symtab_key()
|
D | cil_policy.c | 1157 struct cil_symtab_datum *src, *tgt; in cil_av_rulex_to_policy() 1188 struct cil_symtab_datum *src, *tgt; in cil_av_rule_to_policy() 1226 struct cil_symtab_datum *src, *tgt, *res; in cil_type_rule_to_policy() 1258 struct cil_symtab_datum *src, *tgt, *res; in cil_nametypetransition_to_policy() 1277 struct cil_symtab_datum *src, *exec; in cil_rangetransition_to_policy()
|
D | cil_write_ast.c | 77 str = strdup(((struct cil_symtab_datum *)curr->data)->name); in __cil_unfill_expr_helper() 437 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)node->data; in cil_write_class()
|
D | cil_build_ast.h | 40 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,…
|
/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()
|
D | test_cil_build_ast.c | 793 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_gen_perm_nodes() 823 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_gen_perm_nodes_failgen_neg() 851 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_gen_perm_nodes_inval_perm_neg() 8937 CuAssertPtrEquals(tc, test_ast_node, ((struct cil_symtab_datum*)test_ast_node->data)->node); in test_cil_gen_user() 8938 …CuAssertStrEquals(tc, test_tree->root->cl_head->cl_head->next->data, ((struct cil_symtab_datum*)te… in test_cil_gen_user() 10597 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_gen_classcommon() 10687 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_gen_classcommon_noperms_neg() 10715 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_gen_classcommon_extraperms_neg()
|
D | test_cil_copy_ast.c | 285 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_copy_classcommon()
|
D | test_cil_resolve_ast.c | 11072 ((struct cil_symtab_datum *)test_db->ast->root->cl_head->data)->state = CIL_STATE_DISABLED; in test_cil_resolve_ast_node_helper_optional()
|