Home
last modified time | relevance | path

Searched refs:ptrace (Results 1 – 25 of 42) sorted by relevance

12

/system/extras/runconuid/
Drunconuid.cpp72 ptrace(PTRACE_TRACEME, 0, 0, 0); in do_child()
186 if (ptrace(PTRACE_ATTACH, child, 0, 0) < 0) { in main()
200 ptrace(PTRACE_SETOPTIONS, child, 0, PTRACE_O_TRACESYSGOOD); in main()
203 ptrace(PTRACE_SYSCALL, child, 0, 0); in main()
228 ptrace(PTRACE_DETACH, child, 0, 0); in main()
/system/sepolicy/public/
Dlogd.te52 # ptrace any other app
53 neverallow logd domain:process ptrace;
55 # ... and nobody may ptrace me (except on userdebug or eng builds)
56 neverallow { domain userdebug_or_eng(`-crash_dump') } logd:process ptrace;
Drecovery_persist.te19 # ptrace any other app
20 neverallow recovery_persist domain:process ptrace;
Drecovery_refresh.te17 # ptrace any other app
18 neverallow recovery_refresh domain:process ptrace;
Dlogpersist.te12 # ptrace any other app
13 neverallow logpersist domain:process ptrace;
Dcrash_dump.te10 }:process { ptrace signal sigchld sigstop sigkill };
17 allow crash_dump logd:process { ptrace signal sigchld sigstop sigkill };
Dkeystore.te34 neverallow * keystore:process ptrace;
Dnetd.te98 # ptrace any other app
99 neverallow netd { domain }:process ptrace;
/system/core/debuggerd/libdebuggerd/arm/
Dmachine.cpp33 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &regs)) { in dump_memory_and_code()
68 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
76 if (ptrace(PTRACE_GETVFPREGS, tid, 0, &vfp_regs)) { in dump_registers()
/system/core/debuggerd/libdebuggerd/arm64/
Dmachine.cpp39 if (ptrace(PTRACE_GETREGSET, backtrace->Tid(), reinterpret_cast<void*>(NT_PRSTATUS), &io) == -1) { in dump_memory_and_code()
72 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) { in dump_registers()
83 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRFPREG, (void*) &io) == -1) { in dump_registers()
/system/core/libunwindstack/tests/
DMemoryRemoteTest.cpp45 if (ptrace(PTRACE_ATTACH, pid, 0, 0) == -1) { in Attach()
51 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, pid, 0, &si)) < 0 && errno == ESRCH) { in Attach()
62 return ptrace(PTRACE_DETACH, pid, 0, 0) == 0; in Detach()
/system/core/debuggerd/libdebuggerd/x86/
Dmachine.cpp32 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r) == -1) { in dump_memory_and_code()
49 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) { in dump_registers()
/system/core/debuggerd/libdebuggerd/x86_64/
Dmachine.cpp33 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r) == -1) { in dump_memory_and_code()
50 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) { in dump_registers()
/system/core/debuggerd/
Dcrash_dump.cpp82 if (ptrace(PTRACE_SEIZE, tid, 0, 0) != 0) { in ptrace_seize_thread()
89 if (ptrace(PTRACE_DETACH, tid, 0, 0) != 0) { in ptrace_seize_thread()
97 if (ptrace(PTRACE_INTERRUPT, tid, 0, 0) != 0) { in ptrace_seize_thread()
344 if (ptrace(PTRACE_CONT, main_tid, 0, 0) != 0) { in main()
393 if (ptrace(PTRACE_INTERRUPT, main_tid, 0, 0) != 0) { in main()
/system/sepolicy/private/
Duntrusted_v2_app.te42 # gdbserver for ndk-gdb ptrace attaches to app process.
43 allow untrusted_v2_app self:process ptrace;
Daudioserver.te27 # ptrace to processes in the same domain for memory leak detection
28 allow audioserver self:process ptrace;
Disolated_app.te20 # Google Breakpad (crash reporter for Chrome) relies on ptrace
21 # functionality. Without the ability to ptrace, the crash reporter
25 allow isolated_app self:process ptrace;
Ddomain.te6 # Limit ability to ptrace or read sensitive /proc/pid files of processes
Dstoraged.te50 neverallow storaged domain:process ptrace;
/system/core/libmemunreachable/
DThreadCapture.cpp179 if (ptrace(PTRACE_DETACH, tid, NULL, sig_ptr) < 0 && errno != ESRCH) { in PtraceDetach()
188 int ret = ptrace(PTRACE_SEIZE, tid, NULL, NULL); in PtraceAttach()
199 if (ptrace(PTRACE_INTERRUPT, tid, 0, 0) < 0) { in PtraceAttach()
221 if (ptrace(PTRACE_GETREGSET, tid, reinterpret_cast<void*>(NT_PRSTATUS), &iovec)) { in PtraceThreadInfo()
DREADME.md40 4. *Collection process*: All threads in the original process are paused with `ptrace()`.
42 …locations are re-enabled using `malloc_enable()`, but all threads are still paused with `ptrace()`.
44 8. Collection process releases all threads from `ptrace` and exits
/system/core/debuggerd/libdebuggerd/mips64/
Dmachine.cpp37 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r)) { in dump_memory_and_code()
66 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
/system/core/debuggerd/libdebuggerd/mips/
Dmachine.cpp37 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r)) { in dump_memory_and_code()
66 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { in dump_registers()
/system/core/libbacktrace/
Dbacktrace_test.cpp107 while (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) < 0 && (errno == EINTR || errno == ESRCH)) { in WaitForStop()
124 ASSERT_TRUE(ptrace(PTRACE_ATTACH, *pid, 0, 0) == 0); in CreateRemoteProcess()
131 ASSERT_TRUE(ptrace(PTRACE_DETACH, pid, 0, 0) == 0); in FinishRemoteProcess()
320 if (ptrace(PTRACE_ATTACH, ptrace_tid, 0, 0) == 0) { in VerifyProcTest()
339 ASSERT_TRUE(ptrace(PTRACE_DETACH, ptrace_tid, 0, 0) == 0); in VerifyProcTest()
462 ASSERT_TRUE(ptrace(PTRACE_ATTACH, pid, 0, 0) == 0); in TEST()
1072 if (ptrace(PTRACE_ATTACH, pid, 0, 0) == 0) { in TEST()
1095 ASSERT_TRUE(ptrace(PTRACE_DETACH, pid, 0, 0) == 0); in TEST()
1241 ASSERT_TRUE(ptrace(PTRACE_ATTACH, pid, 0, 0) == 0); in TEST()
1270 ASSERT_TRUE(ptrace(PTRACE_DETACH, pid, 0, 0) == 0); in TEST()
[all …]
DBacktracePtrace.cpp38 *out_value = ptrace(PTRACE_PEEKTEXT, tid, reinterpret_cast<void*>(addr), nullptr); in PtraceRead()

12