Home
last modified time | relevance | path

Searched refs:cil_symtab_datum (Results 1 – 21 of 21) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_symtab.h38 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);
Dcil_internal.h322 struct cil_symtab_datum datum;
343 struct cil_symtab_datum datum;
348 struct cil_symtab_datum datum;
354 struct cil_symtab_datum datum;
378 struct cil_symtab_datum datum;
399 struct cil_symtab_datum datum;
409 struct cil_symtab_datum datum;
425 struct cil_symtab_datum datum;
434 struct cil_symtab_datum datum;
479 struct cil_symtab_datum datum;
[all …]
Dcil_resolve_ast.c77 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()
152 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms()
183 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms_set()
235 struct cil_symtab_datum *datum; in cil_resolve_classpermissionset()
264 int cil_type_used(struct cil_symtab_datum *datum) in cil_type_used()
278 struct cil_symtab_datum *obj_datum = NULL; in cil_resolve_permissionx()
299 struct cil_symtab_datum *src_datum = NULL; in cil_resolve_avrule()
300 struct cil_symtab_datum *tgt_datum = NULL; in cil_resolve_avrule()
[all …]
Dcil_policy.c299 …nt cil_multimap_insert(struct cil_list *list, struct cil_symtab_datum *key, struct cil_symtab_datu… in cil_multimap_insert()
445 char *user_str = ((struct cil_symtab_datum*)context->user)->name; in cil_context_to_policy()
446 char *role_str = ((struct cil_symtab_datum*)context->role)->name; in cil_context_to_policy()
447 char *type_str = ((struct cil_symtab_datum*)context->type)->name; in cil_context_to_policy()
468 fprintf(file_arr[file_index], " %s", ((struct cil_symtab_datum *)curr->data)->name); in cil_perms_to_policy()
608 char *src_str = ((struct cil_symtab_datum*)rule->src)->name; in cil_typerule_to_policy()
609 char *tgt_str = ((struct cil_symtab_datum*)rule->tgt)->name; in cil_typerule_to_policy()
610 char *obj_str = ((struct cil_symtab_datum*)rule->obj)->name; in cil_typerule_to_policy()
611 char *result_str = ((struct cil_symtab_datum*)rule->result)->name; in cil_typerule_to_policy()
633 char *src_str = ((struct cil_symtab_datum*)nametypetrans->src)->name; in cil_nametypetransition_to_policy()
[all …]
Dcil_find.c45 static int cil_type_match_any(struct cil_symtab_datum *d1, struct cil_symtab_datum *d2) in cil_type_match_any()
77 …tatic int cil_type_matches(ebitmap_t *matches, struct cil_symtab_datum *d1, struct cil_symtab_datu… in cil_type_matches()
114 static int cil_self_match_any(struct cil_symtab_datum *s1, struct cil_symtab_datum *s2, struct cil_… in cil_self_match_any()
293 struct cil_symtab_datum *s1 = avrule->src; in cil_find_matching_avrule()
294 struct cil_symtab_datum *t1 = avrule->tgt; in cil_find_matching_avrule()
295 struct cil_symtab_datum *s2 = target->src; in cil_find_matching_avrule()
296 struct cil_symtab_datum *t2 = target->tgt; in cil_find_matching_avrule()
Dcil_symtab.c62 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()
Dcil_fqn.c48 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()
Dcil_copy_ast.c102 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 …]
Dcil_tree.c139 struct cil_symtab_datum *datum; in cil_tree_node_destroy()
273 stack[pos] = ((struct cil_symtab_datum *)curr->data)->name; in cil_expr_to_string()
558 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)context->type)->name); in cil_tree_print_context()
643 struct cil_symtab_datum *datum = NULL; in cil_tree_print_node()
707 struct cil_symtab_datum *datum = NULL; in cil_tree_print_node()
738 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)roletrans->tgt)->name); in cil_tree_print_node()
762 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)roleallow->src)->name); in cil_tree_print_node()
768 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)roleallow->tgt)->name); in cil_tree_print_node()
993 cil_log(CIL_INFO, "TYPEPERMISSIVE: %s\n", ((struct cil_symtab_datum *)typeperm->type)->name); in cil_tree_print_node()
1005 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->src)->name); in cil_tree_print_node()
[all …]
Dcil_policy.h38 struct cil_symtab_datum *key;
Dcil_resolve_ast.h92 …(struct cil_call *call, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum);
99 …node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum);
Dcil_post.c67 struct cil_symtab_datum *d = curr->data; in cil_verify_is_list()
623 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap()
675 static int __cil_user_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_user_to_bitmap()
723 static int __cil_role_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_role_to_bitmap()
792 static int __cil_permx_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((… in __cil_permx_to_bitmap()
816 static int __cil_perm_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, __attribute__((u… in __cil_perm_to_bitmap()
881 static int __cil_cat_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *db) in __cil_cat_to_bitmap()
929 struct cil_symtab_datum *d1 = i1->data; in __cil_cat_expr_range_to_bitmap_helper()
930 struct cil_symtab_datum *d2 = i2->data; in __cil_cat_expr_range_to_bitmap_helper()
1256 static int __cil_role_assign_types(struct cil_role *role, struct cil_symtab_datum *datum) in __cil_role_assign_types()
[all …]
Dcil_verify.h64 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list);
Dcil_build_ast.c85 …(unused)) struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hasht… 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()
1261 …rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)attr, (hashtab_key_t)key, CIL_SYM_USERS,… in cil_gen_userattribute()
[all …]
Dcil_binary.c81 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t… in __cil_get_sepol_user_datum()
92 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t… in __cil_get_sepol_role_datum()
103 static int __cil_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t… in __cil_get_sepol_type_datum()
114 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum()
125 static int __cil_get_sepol_cat_datum(policydb_t *pdb, struct cil_symtab_datum *datum, cat_datum_t *… in __cil_get_sepol_cat_datum()
136 static int __cil_get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum… in __cil_get_sepol_level_datum()
147 static int __cil_expand_user(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_user()
175 static int __cil_expand_role(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_role()
201 static int __cil_expand_type(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_type()
1318 …expand_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datu… in __cil_avrule_expand_helper()
[all …]
Dcil_verify.c318 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list) in cil_verify_no_self_reference()
324 struct cil_symtab_datum *d = i->data; in cil_verify_no_self_reference()
1236 struct cil_symtab_datum *perm_datum; in __cil_verify_permissionx()
1500 static int __cil_verify_classperms(struct cil_list *classperms, struct cil_symtab_datum *orig) in __cil_verify_classperms()
Dcil_build_ast.h40 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/
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()
Dtest_cil_build_ast.c793 …&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()
Dtest_cil_copy_ast.c285 …&test_db->symtab[CIL_SYM_CLASSES], (hashtab_key_t)test_key, (struct cil_symtab_datum*)test_cls, te… in test_cil_copy_classcommon()
Dtest_cil_resolve_ast.c11072 ((struct cil_symtab_datum *)test_db->ast->root->cl_head->data)->state = CIL_STATE_DISABLED; in test_cil_resolve_ast_node_helper_optional()