Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c279 if (sidcontext->context_str == NULL) { in cil_reset_sidcontext()
286 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_reset_filecon()
293 if (portcon->context_str == NULL) { in cil_reset_portcon()
300 if (nodecon->context_str == NULL) { in cil_reset_nodecon()
307 if (genfscon->context_str == NULL) { in cil_reset_genfscon()
325 if (pirqcon->context_str == NULL) { in cil_reset_pirqcon()
332 if (iomemcon->context_str == NULL) { in cil_reset_iomemcon()
339 if (ioportcon->context_str == NULL) { in cil_reset_ioportcon()
346 if (pcidevicecon->context_str == NULL) { in cil_reset_pcidevicecon()
353 if (devicetreecon->context_str == NULL) { in cil_reset_devicetreecon()
[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()
1117 if (orig->context_str != NULL) { in cil_copy_genfscon()
1118 new->context_str = orig->context_str; in cil_copy_genfscon()
1139 if (orig->context_str != NULL) { in cil_copy_filecon()
1140 new->context_str = orig->context_str; in cil_copy_filecon()
1172 if (orig->context_str != NULL) { in cil_copy_nodecon()
1173 new->context_str = orig->context_str; in cil_copy_nodecon()
1195 if (orig->context_str != NULL) { in cil_copy_portcon()
1196 new->context_str = orig->context_str; in cil_copy_portcon()
[all …]
Dcil_internal.h424 char *context_str; member
721 char *context_str; member
735 char *context_str; member
744 char *context_str; member
760 char *context_str; member
770 char *context_str; member
775 char *context_str; member
782 char *context_str; member
789 char *context_str; member
795 char *context_str; member
[all …]
Dcil_tree.c1393 } else if (filecon->context_str != NULL) { in cil_tree_print_node()
1394 cil_log(CIL_INFO, " %s", filecon->context_str); in cil_tree_print_node()
1415 } else if (portcon->context_str != NULL) { in cil_tree_print_node()
1416 cil_log(CIL_INFO, " %s", portcon->context_str); in cil_tree_print_node()
1444 } else if (nodecon->context_str != NULL) { in cil_tree_print_node()
1445 cil_log(CIL_INFO, " %s", nodecon->context_str); in cil_tree_print_node()
1458 } else if (genfscon->context_str != NULL) { in cil_tree_print_node()
1459 cil_log(CIL_INFO, " %s", genfscon->context_str); in cil_tree_print_node()
1491 cil_log(CIL_INFO, " %s", pirqcon->context_str); in cil_tree_print_node()
1504 cil_log(CIL_INFO, " %s", iomemcon->context_str); in cil_tree_print_node()
[all …]
Dcil_resolve_ast.c1862 if (filecon->context_str != NULL) { in cil_resolve_filecon()
1863 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon()
1884 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1885 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1909 if (genfscon->context_str != NULL) { in cil_resolve_genfscon()
1910 …rc = cil_resolve_name(current, genfscon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum… in cil_resolve_genfscon()
1952 if (nodecon->context_str != NULL) { in cil_resolve_nodecon()
1953 …rc = cil_resolve_name(current, nodecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_nodecon()
2023 if (pirqcon->context_str != NULL) { in cil_resolve_pirqcon()
2024 …rc = cil_resolve_name(current, pirqcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_pirqcon()
[all …]
Dcil.c1822 (*netifcon)->context_str = NULL; in cil_netifcon_init()
1949 (*sidcontext)->context_str = NULL; in cil_sidcontext_init()
2237 (*filecon)->context_str = NULL; in cil_filecon_init()
2247 (*portcon)->context_str = NULL; in cil_portcon_init()
2259 (*nodecon)->context_str = NULL; in cil_nodecon_init()
2269 (*genfscon)->context_str = NULL; in cil_genfscon_init()
2278 (*pirqcon)->context_str = NULL; in cil_pirqcon_init()
2288 (*iomemcon)->context_str = NULL; in cil_iomemcon_init()
2296 (*ioportcon)->context_str = NULL; in cil_ioportcon_init()
2305 (*pcidevicecon)->context_str = NULL; in cil_pcidevicecon_init()
[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()
917 if (genfscon->context_str != NULL) { in cil_write_genfscon()
918 ctx_str = strdup(genfscon->context_str); in cil_write_genfscon()
1026 if (fsuse->context_str != NULL) { in cil_write_fsuse()
1027 ctx_str = strdup(fsuse->context_str); in cil_write_fsuse()
Dcil_build_ast.c1091 sidcon->context_str = parse_current->next->next->data; in cil_gen_sidcontext()
1118 if (sidcon->context_str == NULL && sidcon->context != NULL) { in cil_destroy_sidcontext()
4150 filecon->context_str = parse_current->next->next->next->data; in cil_gen_filecon()
4182 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_destroy_filecon()
4255 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
4282 if (portcon->context_str == NULL && portcon->context != NULL) { in cil_destroy_portcon()
4336 nodecon->context_str = parse_current->next->next->next->data; in cil_gen_nodecon()
4371 if (nodecon->context_str == NULL && nodecon->context != NULL) { in cil_destroy_nodecon()
4406 genfscon->context_str = parse_current->next->next->next->data; in cil_gen_genfscon()
4433 if (genfscon->context_str == NULL && genfscon->context != NULL) { in cil_destroy_genfscon()
[all …]
Dandroid.c332 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.c121 char *context_str(context_t context) in hidden_def()
147 hidden_def(context_str) in hidden_def() argument
Dcontext_internal.h6 hidden_proto(context_str)
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.c572 *newtypecon = strdup(context_str(conb)); in compare_types()
/external/selinux/libselinux/include/selinux/
Dcontext.h28 extern char *context_str(context_t);
/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.c920 rcon = strdup(context_str(con)); in new_context_str()
/external/selinux/libselinux/src/android/
Dandroid.c947 ctx_str = context_str(ctx); in selinux_android_setfilecon()
1017 ctx_str = context_str(ctx); in selinux_android_setcontext()
1305 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.c959 if (!(new_con = context_str(context))) { in parse_command_line_arguments()