Skip to content

Commit

Permalink
Removed Peek and poke user from unsupportedOp
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Oct 22, 2018
1 parent fabbe40 commit 5a2f529
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sys/ptrace/linux.rs
Expand Up @@ -174,10 +174,9 @@ libc_bitflags! {
pub unsafe fn ptrace(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result<c_long> {
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)
}
}
Expand Down

0 comments on commit 5a2f529

Please sign in to comment.