Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_internal.h425 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 …]
Dcil_verify.c732 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 …]
Dcil_copy_ast.h96 void cil_copy_fill_context(struct cil_db *db, struct cil_context *orig, struct cil_context *new);
Dcil_build_ast.h173 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);
Dcil_resolve_ast.c1825 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 …]
Dcil_reset_ast.c10 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()
Dandroid.c308 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()
Dcil_resolve_ast.h75 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg…
Dcil_binary.c3063 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()
Dcil_copy_ast.c1065 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()
Dcil_tree.c48 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()
Dcil.c1532 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()
Dcil_post.c111 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()
Dcil_write_ast.c342 static int cil_unfill_context(struct cil_context *context, char **out_str) { in cil_unfill_context()
Dcil_build_ast.c4098 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()
Dcil_policy.c271 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/
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()