Searched refs:PTRACE_ATTACH (Results 1 – 13 of 13) sorted by relevance
/linux/Documentation/admin-guide/LSM/ |
H A D | Yama.rst | 40 other process (and its descendants) are allowed to call ``PTRACE_ATTACH`` 52 a process can ``PTRACE_ATTACH`` to any other 60 with the inferior it wants to call ``PTRACE_ATTACH`` on. By default, 64 an allowed debugger PID to call ``PTRACE_ATTACH`` on the inferior. 69 ``PTRACE_ATTACH`` or through children calling ``PTRACE_TRACEME``. 72 no processes may use ptrace with ``PTRACE_ATTACH`` nor via
|
H A D | Smack.rst | 294 object. For the ``PTRACE_ATTACH`` a read-write access is required. 297 this is the policy that limits ``PTRACE_ATTACH``. Attach is
|
/linux/tools/testing/selftests/ptrace/ |
H A D | vmaccess.c | 59 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L); in TEST() 69 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L); in TEST()
|
H A D | peeksiginfo.c | 188 if (sys_ptrace(PTRACE_ATTACH, child, NULL, NULL) == -1) in main()
|
/linux/tools/testing/selftests/landlock/ |
H A D | ptrace_test.c | 344 ret = ptrace(PTRACE_ATTACH, parent, NULL, 0); in TEST_F() 416 ret = ptrace(PTRACE_ATTACH, child, NULL, 0); in TEST_F()
|
/linux/include/uapi/linux/ |
H A D | ptrace.h | 22 #define PTRACE_ATTACH 16 macro
|
/linux/tools/testing/selftests/x86/ |
H A D | mov_ss_trap.c | 73 if (ptrace(PTRACE_ATTACH, parent, NULL, NULL) != 0) in enable_watchpoint()
|
/linux/tools/testing/selftests/mm/ |
H A D | memfd_secret.c | 160 ret = ptrace(PTRACE_ATTACH, ppid, 0, 0); in try_ptrace()
|
H A D | protection_keys.c | 1389 ret = ptrace(PTRACE_ATTACH, child_pid, ignored, ignored); in test_ptrace_of_child()
|
/linux/kernel/ |
H A D | ptrace.c | 476 proc_ptrace_connector(task, PTRACE_ATTACH); in ptrace_attach() 1275 if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) { in SYSCALL_DEFINE4() 1414 if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) { in COMPAT_SYSCALL_DEFINE4()
|
/linux/drivers/connector/ |
H A D | cn_proc.c | 249 if (ptrace_id == PTRACE_ATTACH) { in proc_ptrace_connector()
|
/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 68 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL); in start_trace()
|
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 1529 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0); in start_tracer() 3317 ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid)); in TEST() 4442 ASSERT_EQ(0, ptrace(PTRACE_ATTACH, self->pid, NULL, 0)); in TEST_F()
|