Home
last modified time | relevance | path

Searched refs:shell_code_size (Results 1 – 2 of 2) sorted by relevance

/platform_testing/utils/shell-as/
Dshell-code.cpp61 size_t shell_code_size = (uintptr_t)&__setcon_shell_code_end - in GetSELinuxShellCode() local
64 *total_size = shell_code_size + selinux_context_size; in GetSELinuxShellCode()
67 memcpy(shell_code.get(), (void*)&__setcon_shell_code_start, shell_code_size); in GetSELinuxShellCode()
68 memcpy(shell_code.get() + shell_code_size, selinux_context, in GetSELinuxShellCode()
Dexecute.cpp203 const size_t shell_code_size) { in ExecuteShellCode() argument
210 std::unique_ptr<uint8_t[]> memory_backup(new uint8_t[shell_code_size]); in ExecuteShellCode()
212 shell_code_size); in ExecuteShellCode()
214 shell_code_size); in ExecuteShellCode()
227 shell_code_size); in ExecuteShellCode()
365 size_t shell_code_size; in ExecuteInContext() local
367 context->selinux_context.value(), &shell_code_size); in ExecuteInContext()
368 bool success = ExecuteShellCode(child, shell_code.get(), shell_code_size); in ExecuteInContext()