Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil_internal.h434 struct cil_context *context;
441 struct cil_context *context;
720 struct cil_context { struct
747 struct cil_context *context; argument
762 struct cil_context *context;
770 struct cil_context *context;
779 struct cil_context *context;
796 struct cil_context *context;
802 struct cil_context *if_context;
804 struct cil_context *packet_context;
[all …]
Dcil_verify.c879 static int __cil_verify_context(struct cil_db *db, struct cil_context *ctx) in __cil_verify_context()
960 struct cil_context *ctx = node->data; in __cil_verify_named_context()
1138 struct cil_context *if_ctx = netif->if_context; in __cil_verify_netifcon()
1139 struct cil_context *pkt_ctx = netif->packet_context; in __cil_verify_netifcon()
1168 struct cil_context *ctx = ib_end_port->context; in __cil_verify_ibendportcon()
1188 struct cil_context *ctx = genfs->context; in __cil_verify_genfscon()
1209 struct cil_context *ctx = file->context; in __cil_verify_filecon()
1235 struct cil_context *ctx = nodecon->context; in __cil_verify_nodecon()
1256 struct cil_context *ctx = pkey->context; in __cil_verify_ibpkeycon()
1276 struct cil_context *ctx = port->context; in __cil_verify_portcon()
[all …]
Dcil_copy_ast.h96 void cil_copy_fill_context(struct cil_db *db, struct cil_context *orig, struct cil_context *new);
Dcil_build_ast.h175 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context);
177 void cil_destroy_context(struct cil_context *context);
231 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context);
Dcil_resolve_ast.c1846 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg… in cil_resolve_context()
1937 filecon->context = (struct cil_context*)context_datum; in cil_resolve_filecon()
1959 ibpkeycon->context = (struct cil_context *)context_datum; in cil_resolve_ibpkeycon()
1983 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon()
2008 genfscon->context = (struct cil_context*)context_datum; in cil_resolve_genfscon()
2051 nodecon->context = (struct cil_context*)context_datum; in cil_resolve_nodecon()
2085 netifcon->if_context = (struct cil_context*)ifcon_datum; in cil_resolve_netifcon()
2098 netifcon->packet_context = (struct cil_context*)packcon_datum; in cil_resolve_netifcon()
2123 ibendportcon->context = (struct cil_context *)con_datum; in cil_resolve_ibendportcon()
2147 pirqcon->context = (struct cil_context*)context_datum; in cil_resolve_pirqcon()
[all …]
Dcil_reset_ast.c11 static inline void cil_reset_context(struct cil_context *context);
301 static inline void cil_reset_context(struct cil_context *context) in cil_reset_context()
Dcil_resolve_ast.h75 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg…
Dcil_binary.c3173 static int __cil_context_to_sepol_context(policydb_t *pdb, struct cil_context *cil_context, context… in __cil_context_to_sepol_context() argument
3176 struct cil_levelrange *cil_lvlrange = cil_context->range; in __cil_context_to_sepol_context()
3181 rc = __cil_get_sepol_user_datum(pdb, DATUM(cil_context->user), &sepol_user); in __cil_context_to_sepol_context()
3184 rc = __cil_get_sepol_role_datum(pdb, DATUM(cil_context->role), &sepol_role); in __cil_context_to_sepol_context()
3187 rc = __cil_get_sepol_type_datum(pdb, DATUM(cil_context->type), &sepol_type); in __cil_context_to_sepol_context()
3225 struct cil_context *cil_context = cil_sid->context; in cil_sidorder_to_policydb() local
3230 if (cil_context != NULL) { in cil_sidorder_to_policydb()
3234 rc = __cil_context_to_sepol_context(pdb, cil_context, &new_ocon->context[0]); in cil_sidorder_to_policydb()
Dcil_copy_ast.c1057 void cil_copy_fill_context(struct cil_db *db, struct cil_context *data, struct cil_context *new) in cil_copy_fill_context()
1073 struct cil_context *orig = data; in cil_copy_context()
1074 struct cil_context *new = NULL; in cil_copy_context()
Dcil.c1729 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1767 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
2120 void cil_context_init(struct cil_context **context) in cil_context_init()
Dcil_post.c118 static int context_compare(struct cil_context *a, struct cil_context *b) in context_compare()
1904 struct cil_context *context = node->data; in __cil_post_db_cat_helper()
Dcil_write_ast.c356 static void write_context(FILE *out, struct cil_context *context, int print_name) in write_context()
1225 struct cil_context *context = node->data; in cil_write_ast_node()
Dcil_build_ast.c4099 int cil_fill_context(struct cil_tree_node *user_node, struct cil_context *context) in cil_fill_context()
4154 struct cil_context *context = NULL; in cil_gen_context()
4189 void cil_destroy_context(struct cil_context *context) in cil_destroy_context()
Dcil_policy.c272 static void cil_context_to_policy(FILE *out, struct cil_context *context, int mls) in cil_context_to_policy()
/third_party/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()