Searched refs:sidcon (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libsepol/cil/src/ |
D | android.c | 335 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()
|
D | cil_write_ast.c | 498 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()
|
D | cil_tree.c | 1618 struct cil_sidcontext *sidcon = node->data; in cil_tree_print_node() local 1619 cil_log(CIL_INFO, "SIDCONTEXT: %s", sidcon->sid_str); in cil_tree_print_node() 1621 if (sidcon->context != NULL) { in cil_tree_print_node() 1622 cil_tree_print_context(sidcon->context); in cil_tree_print_node() 1624 cil_log(CIL_INFO, " %s", sidcon->context_str); in cil_tree_print_node()
|
D | cil_build_ast.c | 1108 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 …]
|
D | cil_resolve_ast.c | 2264 struct cil_sidcontext *sidcon = current->data; in cil_resolve_sidcontext() local 2271 rc = cil_resolve_name(current, sidcon->sid_str, CIL_SYM_SIDS, extra_args, &sid_datum); in cil_resolve_sidcontext() 2277 if (sidcon->context_str != NULL) { in cil_resolve_sidcontext() 2278 rc = cil_resolve_name(current, sidcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_sidcontext() 2282 sidcon->context = (struct cil_context*)context_datum; in cil_resolve_sidcontext() 2283 } else if (sidcon->context != NULL) { in cil_resolve_sidcontext() 2284 rc = cil_resolve_context(current, sidcon->context, extra_args); in cil_resolve_sidcontext() 2296 sid->context = sidcon->context; in cil_resolve_sidcontext()
|
D | cil_build_ast.h | 78 void cil_destroy_sidcontext(struct cil_sidcontext *sidcon);
|