Home
last modified time | relevance | path

Searched refs:selinux_context (Results 1 – 7 of 7) sorted by relevance

/platform_testing/utils/shell-as/
Dshell-code.cpp58 char* selinux_context, size_t* total_size) { in GetSELinuxShellCode() argument
63 size_t selinux_context_size = strlen(selinux_context) + 1 /* null byte */; in GetSELinuxShellCode()
68 memcpy(shell_code.get() + shell_code_size, selinux_context, in GetSELinuxShellCode()
Dcontext.cpp91 char* selinux_context; in SecurityContextFromProcess() local
92 if (getpidcon(process_id, &selinux_context) != 0) { in SecurityContextFromProcess()
115 context->selinux_context = selinux_context; in SecurityContextFromProcess()
Dshell-code.h32 char* selinux_context, size_t* total_size);
Dshell-as-main.cpp59 << (context->selinux_context.has_value() in main()
60 ? context->selinux_context.value() in main()
Dcontext.h44 std::optional<char *> selinux_context; member
Dcommand-line.cpp149 working_context.selinux_context = optarg; in ParseOptions()
Dexecute.cpp364 if (context->selinux_context.has_value()) { in ExecuteInContext()
367 context->selinux_context.value(), &shell_code_size); in ExecuteInContext()