Home
last modified time | relevance | path

Searched refs:context_str (Results 1 – 22 of 22) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c280 if (sidcontext->context_str == NULL) { in cil_reset_sidcontext()
287 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_reset_filecon()
294 if (!ibpkeycon->context_str) in cil_reset_ibpkeycon()
300 if (portcon->context_str == NULL) { in cil_reset_portcon()
307 if (nodecon->context_str == NULL) { in cil_reset_nodecon()
314 if (genfscon->context_str == NULL) { in cil_reset_genfscon()
332 if (!ibendportcon->context_str) { in cil_reset_ibendportcon()
339 if (pirqcon->context_str == NULL) { in cil_reset_pirqcon()
346 if (iomemcon->context_str == NULL) { in cil_reset_iomemcon()
353 if (ioportcon->context_str == NULL) { in cil_reset_ioportcon()
[all …]
Dcil_internal.h432 char *context_str; member
738 char *context_str; member
753 char *context_str; member
761 char *context_str; member
770 char *context_str; member
786 char *context_str; member
796 char *context_str; member
802 char *context_str; member
807 char *context_str; member
814 char *context_str; member
[all …]
Dcil_copy_ast.c350 if (orig->context_str != NULL) { in cil_copy_sidcontext()
351 new->context_str = orig->context_str; in cil_copy_sidcontext()
1140 if (orig->context_str != NULL) { in cil_copy_genfscon()
1141 new->context_str = orig->context_str; in cil_copy_genfscon()
1162 if (orig->context_str != NULL) { in cil_copy_filecon()
1163 new->context_str = orig->context_str; in cil_copy_filecon()
1195 if (orig->context_str != NULL) { in cil_copy_nodecon()
1196 new->context_str = orig->context_str; in cil_copy_nodecon()
1218 if (orig->context_str) { in cil_copy_ibpkeycon()
1219 new->context_str = orig->context_str; in cil_copy_ibpkeycon()
[all …]
Dcil_tree.c1408 } else if (filecon->context_str != NULL) { in cil_tree_print_node()
1409 cil_log(CIL_INFO, " %s", filecon->context_str); in cil_tree_print_node()
1424 else if (ibpkeycon->context_str) in cil_tree_print_node()
1425 cil_log(CIL_INFO, " %s", ibpkeycon->context_str); in cil_tree_print_node()
1446 } else if (portcon->context_str != NULL) { in cil_tree_print_node()
1447 cil_log(CIL_INFO, " %s", portcon->context_str); in cil_tree_print_node()
1475 } else if (nodecon->context_str != NULL) { in cil_tree_print_node()
1476 cil_log(CIL_INFO, " %s", nodecon->context_str); in cil_tree_print_node()
1489 } else if (genfscon->context_str != NULL) { in cil_tree_print_node()
1490 cil_log(CIL_INFO, " %s", genfscon->context_str); in cil_tree_print_node()
[all …]
Dcil_resolve_ast.c1907 if (filecon->context_str != NULL) { in cil_resolve_filecon()
1908 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon()
1929 if (ibpkeycon->context_str) { in cil_resolve_ibpkeycon()
1930 …rc = cil_resolve_name(current, ibpkeycon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datu… in cil_resolve_ibpkeycon()
1953 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1954 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1978 if (genfscon->context_str != NULL) { in cil_resolve_genfscon()
1979 …rc = cil_resolve_name(current, genfscon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum… in cil_resolve_genfscon()
2021 if (nodecon->context_str != NULL) { in cil_resolve_nodecon()
2022 …rc = cil_resolve_name(current, nodecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_nodecon()
[all …]
Dcil.c2015 (*netifcon)->context_str = NULL; in cil_netifcon_init()
2024 (*ibendportcon)->context_str = NULL; in cil_ibendportcon_init()
2152 (*sidcontext)->context_str = NULL; in cil_sidcontext_init()
2450 (*filecon)->context_str = NULL; in cil_filecon_init()
2461 (*ibpkeycon)->context_str = NULL; in cil_ibpkeycon_init()
2471 (*portcon)->context_str = NULL; in cil_portcon_init()
2483 (*nodecon)->context_str = NULL; in cil_nodecon_init()
2493 (*genfscon)->context_str = NULL; in cil_genfscon_init()
2502 (*pirqcon)->context_str = NULL; in cil_pirqcon_init()
2512 (*iomemcon)->context_str = NULL; in cil_iomemcon_init()
[all …]
Dcil_build_ast.c1125 sidcon->context_str = parse_current->next->next->data; in cil_gen_sidcontext()
1152 if (sidcon->context_str == NULL && sidcon->context != NULL) { in cil_destroy_sidcontext()
4254 filecon->context_str = parse_current->next->next->next->data; in cil_gen_filecon()
4286 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_destroy_filecon()
4345 ibpkeycon->context_str = parse_current->next->next->next->data; in cil_gen_ibpkeycon()
4370 if (!ibpkeycon->context_str && ibpkeycon->context) in cil_destroy_ibpkeycon()
4444 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
4471 if (portcon->context_str == NULL && portcon->context != NULL) { in cil_destroy_portcon()
4525 nodecon->context_str = parse_current->next->next->next->data; in cil_gen_nodecon()
4560 if (nodecon->context_str == NULL && nodecon->context != NULL) { in cil_destroy_nodecon()
[all …]
Dcil_write_ast.c501 if (sidcon->context_str != NULL) { in cil_write_sidcontext()
502 ctx_str = strdup(sidcon->context_str); in cil_write_sidcontext()
935 if (genfscon->context_str != NULL) { in cil_write_genfscon()
936 ctx_str = strdup(genfscon->context_str); in cil_write_genfscon()
1044 if (fsuse->context_str != NULL) { in cil_write_fsuse()
1045 ctx_str = strdup(fsuse->context_str); in cil_write_fsuse()
Dandroid.c337 if (sidcon->context_str == NULL) { in cil_attrib_sidcontext()
573 if (genfscon->context_str == NULL) { in cil_attrib_genfscon()
591 if (fsuse->context_str == NULL) { in cil_attrib_fsuse()
/external/selinux/libselinux/src/
Dcontext_internal.h6 hidden_proto(context_str)
Dcontext.c121 char *context_str(context_t context) in hidden_def()
147 hidden_def(context_str) in hidden_def() argument
Dsetexecfilecon.c37 newcon = strdup(context_str(con)); in setexecfilecon()
Dquery_user_context.c164 user_context = context_str(new_context); in manual_user_enter_context()
Dget_context_list.c86 newfromcon = context_str(con); in hidden_def()
359 newfromcon = context_str(con); in get_ordered_context_list_with_level()
Dselinux_restorecon.c580 *newtypecon = strdup(context_str(conb)); in compare_types()
/external/selinux/libselinux/include/selinux/
Dcontext.h28 extern char *context_str(context_t);
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dmodule.py64 context_str = '\n'.join(' %s' % x for x in context)
66 self, 'While loading:\n%s\nGot: %s' % (context_str, (fmt % args)))
/external/selinux/mcstrans/src/
Dmcscolor.c102 ctx = strdup(context_str(my_tmp)); in check_dominance()
108 raw = context_str(my_tmp); in check_dominance()
Dmcstrans.c921 rcon = strdup(context_str(con)); in new_context_str()
/external/selinux/libselinux/src/android/
Dandroid_platform.c996 char * newString = context_str(ctx); in selinux_android_context_with_level()
1054 ctx_str = context_str(ctx); in selinux_android_setcontext()
1279 secontext = context_str(ctx); in pkgdir_selabel_lookup()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c1147 CuAssertStrEquals(tc, test_copy->context_str, in test_cil_copy_nodecon()
1148 ((struct cil_nodecon *)test_ast_node->data)->context_str); in test_cil_copy_nodecon()
1179 CuAssertStrEquals(tc, test_copy->context_str, in test_cil_copy_nodecon_anon()
1180 ((struct cil_nodecon *)test_ast_node->data)->context_str); in test_cil_copy_nodecon_anon()
/external/selinux/policycoreutils/newrole/
Dnewrole.c962 if (!(new_con = context_str(context))) { in parse_command_line_arguments()