Home
last modified time | relevance | path

Searched refs:context_str (Results 1 - 15 of 15) sorted by relevance

/third_party/selinux/libsepol/cil/src/
H A Dcil_reset_ast.c315 if (sidcontext->context_str == NULL) { in cil_reset_sidcontext()
324 if (filecon->context_str == NULL) { in cil_reset_filecon()
333 if (ibpkeycon->context_str == NULL) { in cil_reset_ibpkeycon()
342 if (portcon->context_str == NULL) { in cil_reset_portcon()
351 if (nodecon->context_str == NULL) { in cil_reset_nodecon()
360 if (genfscon->context_str == NULL) { in cil_reset_genfscon()
384 if (ibendportcon->context_str == NULL) { in cil_reset_ibendportcon()
393 if (pirqcon->context_str == NULL) { in cil_reset_pirqcon()
402 if (iomemcon->context_str == NULL) { in cil_reset_iomemcon()
411 if (ioportcon->context_str in cil_reset_ioportcon()
[all...]
H A Dcil_copy_ast.c359 if (orig->context_str != NULL) { in cil_copy_sidcontext()
360 new->context_str = orig->context_str; in cil_copy_sidcontext()
1132 if (orig->context_str != NULL) { in cil_copy_genfscon()
1133 new->context_str = orig->context_str; in cil_copy_genfscon()
1154 if (orig->context_str != NULL) { in cil_copy_filecon()
1155 new->context_str = orig->context_str; in cil_copy_filecon()
1187 if (orig->context_str ! in cil_copy_nodecon()
[all...]
H A Dcil_internal.h440 char *context_str; member
746 char *context_str; member
761 char *context_str; member
769 char *context_str; member
778 char *context_str; member
795 char *context_str; member
805 char *context_str; member
811 char *context_str; member
816 char *context_str; member
823 char *context_str; member
830 char *context_str; global() member
836 char *context_str; global() member
842 char *context_str; global() member
857 char *context_str; global() member
[all...]
H A Dcil_write_ast.c832 fprintf(out, "%s", sidcon->context_str); in cil_write_ast_node()
1265 else if (filecon->context_str) in cil_write_ast_node()
1266 fprintf(out, "%s", filecon->context_str); in cil_write_ast_node()
1278 else if (ibpkeycon->context_str) in cil_write_ast_node()
1279 fprintf(out, "%s", ibpkeycon->context_str); in cil_write_ast_node()
1303 fprintf(out, "%s", portcon->context_str); in cil_write_ast_node()
1323 fprintf(out, "%s", nodecon->context_str); in cil_write_ast_node()
1361 fprintf(out, "%s", genfscon->context_str); in cil_write_ast_node()
1386 fprintf(out, "%s", ibendportcon->context_str); in cil_write_ast_node()
1396 fprintf(out, "%s", pirqcon->context_str); in cil_write_ast_node()
[all...]
H A Dcil.c2107 (*netifcon)->context_str = NULL; in cil_netifcon_init()
2116 (*ibendportcon)->context_str = NULL; in cil_ibendportcon_init()
2245 (*sidcontext)->context_str = NULL; in cil_sidcontext_init()
2543 (*filecon)->context_str = NULL; in cil_filecon_init()
2554 (*ibpkeycon)->context_str = NULL; in cil_ibpkeycon_init()
2564 (*portcon)->context_str = NULL; in cil_portcon_init()
2576 (*nodecon)->context_str = NULL; in cil_nodecon_init()
2587 (*genfscon)->context_str = NULL; in cil_genfscon_init()
2596 (*pirqcon)->context_str = NULL; in cil_pirqcon_init()
2606 (*iomemcon)->context_str in cil_iomemcon_init()
[all...]
H A Dcil_resolve_ast.c1932 if (filecon->context_str != NULL) { in cil_resolve_filecon()
1933 rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon()
1954 if (ibpkeycon->context_str) { in cil_resolve_ibpkeycon()
1955 rc = cil_resolve_name(current, ibpkeycon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_ibpkeycon()
1978 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1979 rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
2003 if (genfscon->context_str != NULL) { in cil_resolve_genfscon()
2004 rc = cil_resolve_name(current, genfscon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_genfscon()
2046 if (nodecon->context_str != NULL) { in cil_resolve_nodecon()
2047 rc = cil_resolve_name(current, nodecon->context_str, CIL_SYM_CONTEXT in cil_resolve_nodecon()
[all...]
H A Dcil_build_ast.c1189 sidcon->context_str = parse_current->next->next->data; in cil_gen_sidcontext()
1216 if (sidcon->context_str == NULL && sidcon->context != NULL) { in cil_destroy_sidcontext()
4255 filecon->context_str = parse_current->next->next->next->data; in cil_gen_filecon()
4287 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_destroy_filecon()
4346 ibpkeycon->context_str = parse_current->next->next->next->data; in cil_gen_ibpkeycon()
4371 if (!ibpkeycon->context_str && ibpkeycon->context) in cil_destroy_ibpkeycon()
4445 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
4472 if (portcon->context_str == NULL && portcon->context != NULL) { in cil_destroy_portcon()
4526 nodecon->context_str = parse_current->next->next->next->data; in cil_gen_nodecon()
4561 if (nodecon->context_str in cil_destroy_nodecon()
[all...]
/third_party/selinux/libselinux/src/
H A Dget_context_list.c87 newfromcon = context_str(con); in get_default_context_with_rolelevel()
261 usercon_str2 = context_str(usercon); in get_context_user()
375 newfromcon = context_str(con); in get_ordered_context_list_with_level()
H A Dsetexecfilecon.c37 newcon = strdup(context_str(con)); in setexecfilecon()
H A Dquery_user_context.c164 user_context = context_str(new_context); in manual_user_enter_context()
H A Dcontext.c117 const char *context_str(context_t context) in context_str() function
H A Dselinux_restorecon.c616 *newtypecon = strdup(context_str(conb)); in compare_types()
/third_party/selinux/libselinux/include/selinux/
H A Dcontext.h24 * Valid until the next call to context_str or context_free
28 extern const char *context_str(context_t con);
/third_party/eudev/src/shared/
H A Dselinux-util.c300 mycon = strdup(context_str(bcon)); in mac_selinux_get_child_mls_label()
/third_party/selinux/libsepol/cil/test/unit/
H A 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()

Completed in 40 milliseconds