/external/selinux/libsepol/cil/src/ |
D | cil_internal.h | 425 struct cil_context *context; 432 struct cil_context *context; 711 struct cil_context { struct 738 struct cil_context *context; argument 753 struct cil_context *context; 761 struct cil_context *context; 770 struct cil_context *context; 786 struct cil_context *context; 792 struct cil_context *if_context; 794 struct cil_context *packet_context; [all …]
|
D | cil_verify.c | 732 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) in __cil_verify_context() 813 struct cil_context *ctx = node->data; in __cil_verify_named_context() 989 struct cil_context *if_ctx = netif->if_context; in __cil_verify_netifcon() 990 struct cil_context *pkt_ctx = netif->packet_context; in __cil_verify_netifcon() 1019 struct cil_context *ctx = ib_end_port->context; in __cil_verify_ibendportcon() 1039 struct cil_context *ctx = genfs->context; in __cil_verify_genfscon() 1060 struct cil_context *ctx = file->context; in __cil_verify_filecon() 1086 struct cil_context *ctx = nodecon->context; in __cil_verify_nodecon() 1107 struct cil_context *ctx = pkey->context; in __cil_verify_ibpkeycon() 1127 struct cil_context *ctx = port->context; in __cil_verify_portcon() [all …]
|
D | cil_copy_ast.h | 96 void cil_copy_fill_context(struct cil_db *db, struct cil_context *orig, struct cil_context *new);
|
D | cil_build_ast.h | 173 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context); 175 void cil_destroy_context(struct cil_context *context); 229 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context);
|
D | cil_resolve_ast.c | 1825 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg… in cil_resolve_context() 1916 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon() 1938 ibpkeycon->context = (struct cil_context *)context_datum; in cil_resolve_ibpkeycon() 1962 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon() 1987 genfscon->context = (struct cil_context*)context_datum; in cil_resolve_genfscon() 2030 nodecon->context = (struct cil_context*)context_datum; in cil_resolve_nodecon() 2064 netifcon->if_context = (struct cil_context*)ifcon_datum; in cil_resolve_netifcon() 2077 netifcon->packet_context = (struct cil_context*)packcon_datum; in cil_resolve_netifcon() 2102 ibendportcon->context = (struct cil_context *)con_datum; in cil_resolve_ibendportcon() 2126 pirqcon->context = (struct cil_context*)context_datum; in cil_resolve_pirqcon() [all …]
|
D | cil_reset_ast.c | 10 static inline void cil_reset_context(struct cil_context *context); 271 static inline void cil_reset_context(struct cil_context *context) in cil_reset_context()
|
D | android.c | 308 static int cil_attrib_check_context(struct cil_context *ctxt, struct version_args *args) in cil_attrib_check_context() 352 struct cil_context *ctxt = (struct cil_context *)node->data; in cil_attrib_context()
|
D | cil_resolve_ast.h | 75 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg…
|
D | cil_binary.c | 3063 int __cil_context_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct… in __cil_context_to_sepol_context() argument 3066 struct cil_levelrange *cil_lvlrange = cil_context->range; in __cil_context_to_sepol_context() 3071 rc = __cil_get_sepol_user_datum(pdb, DATUM(cil_context->user), &sepol_user); in __cil_context_to_sepol_context() 3074 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_context->role), &sepol_role); in __cil_context_to_sepol_context() 3077 rc = __cil_get_sepol_type_datum(pdb, DATUM(cil_context->type), &sepol_type); in __cil_context_to_sepol_context() 3115 struct cil_context *cil_context = cil_sid->context; in cil_sidorder_to_policydb() local 3117 if (cil_context != NULL) { in cil_sidorder_to_policydb() 3122 rc = __cil_context_to_sepol_context(pdb, cil_context, &new_ocon->context[0]); in cil_sidorder_to_policydb()
|
D | cil_copy_ast.c | 1065 void cil_copy_fill_context(struct cil_db *db, struct cil_context *data, struct cil_context *new) in cil_copy_fill_context() 1081 struct cil_context *orig = data; in cil_copy_context() 1082 struct cil_context *new = NULL; in cil_copy_context()
|
D | cil_tree.c | 48 void cil_tree_print_context(struct cil_context *context); 632 void cil_tree_print_context(struct cil_context *context) in cil_tree_print_context() 1395 struct cil_context *context = node->data; in cil_tree_print_node()
|
D | cil.c | 1532 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1570 struct cil_context *ctx = filecon->context; in cil_filecons_to_string() 1865 void cil_context_init(struct cil_context **context) in cil_context_init()
|
D | cil_post.c | 111 static int context_compare(struct cil_context *a, struct cil_context *b) in context_compare() 1894 struct cil_context *context = node->data; in __cil_post_db_cat_helper()
|
D | cil_write_ast.c | 342 static int cil_unfill_context(struct cil_context *context, char **out_str) { in cil_unfill_context()
|
D | cil_build_ast.c | 4098 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context) in cil_fill_context() 4153 struct cil_context *context = NULL; in cil_gen_context() 4188 void cil_destroy_context(struct cil_context *context) in cil_destroy_context()
|
D | cil_policy.c | 271 static void cil_context_to_policy(FILE *out, struct cil_context *context, int mls) in cil_context_to_policy()
|
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_copy_ast.c | 1012 cil_context_init((struct cil_context**)&test_copy->data); in test_cil_copy_fill_context() 1017 …int rc = cil_copy_fill_context((struct cil_context*)test_ast_node->data, (struct cil_context*)test… in test_cil_copy_fill_context() 1019 CuAssertStrEquals(tc, ((struct cil_context *)test_copy->data)->user_str, in test_cil_copy_fill_context() 1020 ((struct cil_context *)test_ast_node->data)->user_str); in test_cil_copy_fill_context() 1021 CuAssertStrEquals(tc, ((struct cil_context *)test_copy->data)->role_str, in test_cil_copy_fill_context() 1022 ((struct cil_context *)test_ast_node->data)->role_str); in test_cil_copy_fill_context() 1023 CuAssertStrEquals(tc, ((struct cil_context *)test_copy->data)->type_str, in test_cil_copy_fill_context() 1024 ((struct cil_context *)test_ast_node->data)->type_str); in test_cil_copy_fill_context() 1025 CuAssertStrEquals(tc, ((struct cil_context *)test_copy->data)->range_str, in test_cil_copy_fill_context() 1026 ((struct cil_context *)test_ast_node->data)->range_str); in test_cil_copy_fill_context() [all …]
|
D | test_cil_resolve_ast.c | 1687 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context() 1717 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_macro() 1762 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_macro_neg() 1807 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_namedrange() 1837 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_namedrange_neg() 1865 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_user_neg() 1893 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_role_neg() 1921 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_type_neg() 1954 …struct cil_context *test_context = (struct cil_context*)test_db->ast->root->cl_head->next->next->n… in test_cil_resolve_context_anon_level_neg() 5116 cil_resolve_context(context, (struct cil_context*)context->data, args); in test_cil_resolve_sidcontext_named_context() [all …]
|
D | test_cil_build_ast.c | 11874 struct cil_context *test_context; in test_cil_fill_context() 11896 struct cil_context *test_context; in test_cil_fill_context_unnamedlvl() 11918 struct cil_context *test_context = NULL; in test_cil_fill_context_nocontext_neg() 11939 struct cil_context *test_context; in test_cil_fill_context_nouser_neg() 11961 struct cil_context *test_context; in test_cil_fill_context_norole_neg() 11983 struct cil_context *test_context; in test_cil_fill_context_notype_neg() 12005 struct cil_context *test_context; in test_cil_fill_context_nolowlvl_neg() 12027 struct cil_context *test_context; in test_cil_fill_context_nohighlvl_neg() 12049 struct cil_context *test_context; in test_cil_fill_context_unnamedlvl_nocontextlow_neg() 12071 struct cil_context *test_context; in test_cil_fill_context_unnamedlvl_nocontexthigh_neg()
|