Searched refs:shell_code (Results 1 – 2 of 2) sorted by relevance
/platform_testing/utils/shell-as/ |
D | shell-code.cpp | 66 std::unique_ptr<uint8_t[]> shell_code(new uint8_t[*total_size]); in GetSELinuxShellCode() local 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() 70 return shell_code; in GetSELinuxShellCode() 81 std::unique_ptr<uint8_t[]> shell_code(new uint8_t[*total_size]); in GetTrapShellCode() local 82 memcpy(shell_code.get(), (void*)&__trap_shell_code_start, *total_size); in GetTrapShellCode() 83 return shell_code; in GetTrapShellCode()
|
D | execute.cpp | 202 bool ExecuteShellCode(const pid_t process, const uint8_t* shell_code, in ExecuteShellCode() argument 213 WriteChildMemory(process, PROGRAM_COUNTER(registers), shell_code, in ExecuteShellCode() 366 std::unique_ptr<uint8_t[]> shell_code = GetSELinuxShellCode( in ExecuteInContext() local 368 bool success = ExecuteShellCode(child, shell_code.get(), shell_code_size); in ExecuteInContext()
|