Home
last modified time | relevance | path

Searched refs:sidcon (Results 1 – 6 of 6) sorted by relevance

/external/selinux/libsepol/cil/src/
Dandroid.c335 struct cil_sidcontext *sidcon = (struct cil_sidcontext *)node->data; in cil_attrib_sidcontext() local
337 if (sidcon->context_str == NULL) { in cil_attrib_sidcontext()
339 rc = cil_attrib_check_context(sidcon->context, args); in cil_attrib_sidcontext()
Dcil_write_ast.c498 struct cil_sidcontext *sidcon = (struct cil_sidcontext *)node->data; in cil_write_sidcontext() local
500 sid = sidcon->sid_str; in cil_write_sidcontext()
501 if (sidcon->context_str != NULL) { in cil_write_sidcontext()
502 ctx_str = strdup(sidcon->context_str); in cil_write_sidcontext()
509 rc = cil_unfill_context(sidcon->context, &ctx_str); in cil_write_sidcontext()
Dcil_tree.c1624 struct cil_sidcontext *sidcon = node->data; in cil_tree_print_node() local
1625 cil_log(CIL_INFO, "SIDCONTEXT: %s", sidcon->sid_str); in cil_tree_print_node()
1627 if (sidcon->context != NULL) { in cil_tree_print_node()
1628 cil_tree_print_context(sidcon->context); in cil_tree_print_node()
1630 cil_log(CIL_INFO, " %s", sidcon->context_str); in cil_tree_print_node()
Dcil_build_ast.c1108 struct cil_sidcontext *sidcon = NULL; in cil_gen_sidcontext() local
1120 cil_sidcontext_init(&sidcon); in cil_gen_sidcontext()
1122 sidcon->sid_str = parse_current->next->data; in cil_gen_sidcontext()
1125 sidcon->context_str = parse_current->next->next->data; in cil_gen_sidcontext()
1127 cil_context_init(&sidcon->context); in cil_gen_sidcontext()
1129 rc = cil_fill_context(parse_current->next->next->cl_head, sidcon->context); in cil_gen_sidcontext()
1135 ast_node->data = sidcon; in cil_gen_sidcontext()
1142 cil_destroy_sidcontext(sidcon); in cil_gen_sidcontext()
1146 void cil_destroy_sidcontext(struct cil_sidcontext *sidcon) in cil_destroy_sidcontext() argument
1148 if (sidcon == NULL) { in cil_destroy_sidcontext()
[all …]
Dcil_resolve_ast.c2263 struct cil_sidcontext *sidcon = current->data; in cil_resolve_sidcontext() local
2270 rc = cil_resolve_name(current, sidcon->sid_str, CIL_SYM_SIDS, extra_args, &sid_datum); in cil_resolve_sidcontext()
2276 if (sidcon->context_str != NULL) { in cil_resolve_sidcontext()
2277 rc = cil_resolve_name(current, sidcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_sidcontext()
2281 sidcon->context = (struct cil_context*)context_datum; in cil_resolve_sidcontext()
2282 } else if (sidcon->context != NULL) { in cil_resolve_sidcontext()
2283 rc = cil_resolve_context(current, sidcon->context, extra_args); in cil_resolve_sidcontext()
2295 sid->context = sidcon->context; in cil_resolve_sidcontext()
Dcil_build_ast.h78 void cil_destroy_sidcontext(struct cil_sidcontext *sidcon);