Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/cil/src/
Dcil_write_ast.c827 struct cil_sidcontext *sidcon = node->data; in cil_write_ast_node() local
828 fprintf(out, "(sidcontext %s ", sidcon->sid_str); in cil_write_ast_node()
829 if (sidcon->context) in cil_write_ast_node()
830 write_context(out, sidcon->context, CIL_TRUE); in cil_write_ast_node()
832 fprintf(out, "%s", sidcon->context_str); in cil_write_ast_node()
Dcil_build_ast.c1172 struct cil_sidcontext *sidcon = NULL; in cil_gen_sidcontext() local
1184 cil_sidcontext_init(&sidcon); in cil_gen_sidcontext()
1186 sidcon->sid_str = parse_current->next->data; in cil_gen_sidcontext()
1189 sidcon->context_str = parse_current->next->next->data; in cil_gen_sidcontext()
1191 cil_context_init(&sidcon->context); in cil_gen_sidcontext()
1193 rc = cil_fill_context(parse_current->next->next->cl_head, sidcon->context); in cil_gen_sidcontext()
1199 ast_node->data = sidcon; in cil_gen_sidcontext()
1206 cil_destroy_sidcontext(sidcon); in cil_gen_sidcontext()
1210 void cil_destroy_sidcontext(struct cil_sidcontext *sidcon) in cil_destroy_sidcontext() argument
1212 if (sidcon == NULL) { in cil_destroy_sidcontext()
[all …]
Dcil_resolve_ast.c2288 struct cil_sidcontext *sidcon = current->data; in cil_resolve_sidcontext() local
2295 rc = cil_resolve_name(current, sidcon->sid_str, CIL_SYM_SIDS, extra_args, &sid_datum); in cil_resolve_sidcontext()
2301 if (sidcon->context_str != NULL) { in cil_resolve_sidcontext()
2302 rc = cil_resolve_name(current, sidcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_sidcontext()
2306 sidcon->context = (struct cil_context*)context_datum; in cil_resolve_sidcontext()
2307 } else if (sidcon->context != NULL) { in cil_resolve_sidcontext()
2308 rc = cil_resolve_context(current, sidcon->context, extra_args); in cil_resolve_sidcontext()
2320 sid->context = sidcon->context; in cil_resolve_sidcontext()
Dcil_build_ast.h80 void cil_destroy_sidcontext(struct cil_sidcontext *sidcon);