Home
last modified time | relevance | path

Searched refs:cil_context (Results 1 – 18 of 18) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_internal.h410 struct cil_context *context;
417 struct cil_context *context;
684 struct cil_context { struct
711 struct cil_context *context; argument
724 struct cil_context *context;
733 struct cil_context *context;
749 struct cil_context *context;
755 struct cil_context *if_context;
757 struct cil_context *packet_context;
764 struct cil_context *context;
[all …]
Dcil_verify.c726 int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) in __cil_verify_context()
807 struct cil_context *ctx = node->data; in __cil_verify_named_context()
988 struct cil_context *if_ctx = netif->if_context; in __cil_verify_netifcon()
989 struct cil_context *pkt_ctx = netif->packet_context; in __cil_verify_netifcon()
1018 struct cil_context *ctx = genfs->context; in __cil_verify_genfscon()
1039 struct cil_context *ctx = file->context; in __cil_verify_filecon()
1066 struct cil_context *ctx = nodecon->context; in __cil_verify_nodecon()
1087 struct cil_context *ctx = port->context; in __cil_verify_portcon()
1108 struct cil_context *ctx = pirq->context; in __cil_verify_pirqcon()
1129 struct cil_context *ctx = iomem->context; in __cil_verify_iomemcon()
[all …]
Dcil_policy.h43 void cil_context_to_policy(FILE **, uint32_t, struct cil_context *);
Dcil_build_ast.h171 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context);
173 void cil_destroy_context(struct cil_context *context);
221 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context);
Dcil_copy_ast.h96 void cil_copy_fill_context(struct cil_db *db, struct cil_context *orig, struct cil_context *new);
Dcil_reset_ast.c10 static inline void cil_reset_context(struct cil_context *context);
270 static inline void cil_reset_context(struct cil_context *context) in cil_reset_context()
Dcil_resolve_ast.c1767 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg… in cil_resolve_context()
1858 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon()
1880 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon()
1905 genfscon->context = (struct cil_context*)context_datum; in cil_resolve_genfscon()
1948 nodecon->context = (struct cil_context*)context_datum; in cil_resolve_nodecon()
1982 netifcon->if_context = (struct cil_context*)ifcon_datum; in cil_resolve_netifcon()
1995 netifcon->packet_context = (struct cil_context*)packcon_datum; in cil_resolve_netifcon()
2019 pirqcon->context = (struct cil_context*)context_datum; in cil_resolve_pirqcon()
2044 iomemcon->context = (struct cil_context*)context_datum; in cil_resolve_iomemcon()
2069 ioportcon->context = (struct cil_context*)context_datum; in cil_resolve_ioportcon()
[all …]
Dcil_resolve_ast.h75 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg…
Dcil_tree.c48 void cil_tree_print_context(struct cil_context *context);
542 void cil_tree_print_context(struct cil_context *context) in cil_tree_print_context()
1294 struct cil_context *context = node->data; in cil_tree_print_node()
Dcil_binary.c2859 int __cil_context_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context_struct… in __cil_context_to_sepol_context() argument
2862 struct cil_levelrange *cil_lvlrange = cil_context->range; in __cil_context_to_sepol_context()
2867 rc = __cil_get_sepol_user_datum(pdb, DATUM(cil_context->user), &sepol_user); in __cil_context_to_sepol_context()
2870 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_context->role), &sepol_role); in __cil_context_to_sepol_context()
2873 rc = __cil_get_sepol_type_datum(pdb, DATUM(cil_context->type), &sepol_type); in __cil_context_to_sepol_context()
2911 struct cil_context *cil_context = cil_sid->context; in cil_sidorder_to_policydb() local
2913 if (cil_context != NULL) { in cil_sidorder_to_policydb()
2918 rc = __cil_context_to_sepol_context(pdb, cil_context, &new_ocon->context[0]); in cil_sidorder_to_policydb()
Dcil_copy_ast.c1042 void cil_copy_fill_context(struct cil_db *db, struct cil_context *data, struct cil_context *new) in cil_copy_fill_context()
1058 struct cil_context *orig = data; in cil_copy_context()
1059 struct cil_context *new = NULL; in cil_copy_context()
Dcil.c1490 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1528 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1799 void cil_context_init(struct cil_context **context) in cil_context_init()
Dcil_policy.c443 void cil_context_to_policy(FILE **file_arr, uint32_t file_index, struct cil_context *context) in cil_context_to_policy()
Dcil_build_ast.c4037 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context) in cil_fill_context()
4092 struct cil_context *context = NULL; in cil_gen_context()
4128 void cil_destroy_context(struct cil_context *context) in cil_destroy_context()
Dcil_post.c1554 struct cil_context *context = node->data; in __cil_post_db_cat_helper()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c1012 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 …]
Dtest_cil_resolve_ast.c1687 …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 …]
Dtest_cil_build_ast.c11874 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()