Skip to content

Commit 12578de

Browse files
committed
Removed Peek and poke user from unsupportedOp
1 parent c285b95 commit 12578de

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2727
([#955](https://github.com/nix-rust/nix/pull/955))
2828
- Added support for `ptrace` on BSD operating systems ([#949](https://github.com/nix-rust/nix/pull/949))
2929
- Added `ptrace` functions for reads and writes to tracee memory and ptrace kill
30-
([#949](https://github.com/nix-rust/nix/pull/949))
30+
([#949](https://github.com/nix-rust/nix/pull/949)) ([#958](https://github.com/nix-rust/nix/pull/958))
3131
- Added a `acct` wrapper module for enabling and disabling process accounting
3232
([#952](https://github.com/nix-rust/nix/pull/952))
3333

src/sys/ptrace/linux.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,9 @@ libc_bitflags! {
174174
pub unsafe fn ptrace(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result<c_long> {
175175
use self::Request::*;
176176
match request {
177-
PTRACE_PEEKTEXT | PTRACE_PEEKDATA | PTRACE_PEEKUSER | PTRACE_GETSIGINFO |
177+
PTRACE_PEEKTEXT | PTRACE_PEEKDATA | PTRACE_GETSIGINFO |
178178
PTRACE_GETEVENTMSG | PTRACE_SETSIGINFO | PTRACE_SETOPTIONS |
179-
PTRACE_POKETEXT | PTRACE_POKEDATA | PTRACE_POKEUSER |
180-
PTRACE_KILL => Err(Error::UnsupportedOperation),
179+
PTRACE_POKETEXT | PTRACE_POKEDATA | PTRACE_KILL => Err(Error::UnsupportedOperation),
181180
_ => ptrace_other(request, pid, addr, data)
182181
}
183182
}

0 commit comments

Comments
 (0)