Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: pass PROT_MPROTECT(PROT_READ|PROT_WRITE) to initial Mmap on netbsd
On NetBSD PAX mprotect prohibits setting protection bits missing from the original mmap call unless explicitly requested with PROT_MPROTECT. Fixes golang/go#58660 Change-Id: I1e97e920bc617ed1674855adaae5047638a30394 Reviewed-on: https://go-review.googlesource.com/c/sys/+/470775 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
- Loading branch information