From 5a2f529932cd2aef59897fc5f60ffcb0fef7db97 Mon Sep 17 00:00:00 2001 From: xd009642 Date: Mon, 22 Oct 2018 23:20:36 +0100 Subject: [PATCH] Removed Peek and poke user from unsupportedOp --- src/sys/ptrace/linux.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sys/ptrace/linux.rs b/src/sys/ptrace/linux.rs index 9821f2aed7..6bd3970580 100644 --- a/src/sys/ptrace/linux.rs +++ b/src/sys/ptrace/linux.rs @@ -174,10 +174,9 @@ libc_bitflags! { pub unsafe fn ptrace(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result { use self::Request::*; match request { - PTRACE_PEEKTEXT | PTRACE_PEEKDATA | PTRACE_PEEKUSER | PTRACE_GETSIGINFO | + PTRACE_PEEKTEXT | PTRACE_PEEKDATA | PTRACE_GETSIGINFO | PTRACE_GETEVENTMSG | PTRACE_SETSIGINFO | PTRACE_SETOPTIONS | - PTRACE_POKETEXT | PTRACE_POKEDATA | PTRACE_POKEUSER | - PTRACE_KILL => Err(Error::UnsupportedOperation), + PTRACE_POKETEXT | PTRACE_POKEDATA | PTRACE_KILL => Err(Error::UnsupportedOperation), _ => ptrace_other(request, pid, addr, data) } }