From 8a694c4f23be106fcd7acd16899a4d75699140f6 Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Sun, 6 Oct 2019 20:23:41 +0100 Subject: [PATCH] Add PtraceSeize Signed-off-by: Paulo Gomes --- unix/syscall_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/syscall_linux.go b/unix/syscall_linux.go index 772ba706..1047d719 100644 --- a/unix/syscall_linux.go +++ b/unix/syscall_linux.go @@ -1495,6 +1495,8 @@ func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pi func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } +func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) } + func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) } //sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error)