Skip to content

Commit

Permalink
unix: add ptrace(PT_DENY_ATTACH) wrapper for darwin
Browse files Browse the repository at this point in the history
Change-Id: I13e4426e6e411ceb449539479d9bcee15a518cf6
Reviewed-on: https://go-review.googlesource.com/c/sys/+/464655
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
  • Loading branch information
tmthrgd authored and gopherbot committed Feb 3, 2023
1 parent 6938dae commit 0e1262c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unix/syscall_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ func direntNamlen(buf []byte) (uint64, bool) {

func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
func PtraceDenyAttach() (err error) { return ptrace(PT_DENY_ATTACH, 0, 0, 0) }

//sysnb pipe(p *[2]int32) (err error)

Expand Down

0 comments on commit 0e1262c

Please sign in to comment.