diff options
author | 2021-03-02 17:43:04 +0000 | |
---|---|---|
committer | 2021-03-02 17:43:04 +0000 | |
commit | fd874303f21d95e37c4b1c2e7e2d403ce351bd90 (patch) | |
tree | afdd67df474a3641123443c569837d93f5bee534 /lib/libc | |
parent | Must include netinet/in.h before netinet/ip.h or bad things happen. (diff) | |
download | wireguard-openbsd-fd874303f21d95e37c4b1c2e7e2d403ce351bd90.tar.xz wireguard-openbsd-fd874303f21d95e37c4b1c2e7e2d403ce351bd90.zip |
document ENOTSUP wxallowed/wxneeded behaviour more clearly; ok kurt
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/mmap.2 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index cdd744c0a0e..2210a8ec78d 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mmap.2,v 1.65 2019/12/21 05:23:38 jsg Exp $ +.\" $OpenBSD: mmap.2,v 1.66 2021/03/02 17:43:04 deraadt Exp $ .\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mmap.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 21 2019 $ +.Dd $Mdocdate: March 2 2021 $ .Dt MMAP 2 .Os .Sh NAME @@ -291,11 +291,15 @@ The accesses requested in the argument are not allowed. In particular, .Dv PROT_WRITE | PROT_EXEC -mappings are not permitted in most binaries (see +mappings are not permitted unless the filesystem is mounted +.Cm wxallowed +and the process is link-time tagged with +.Cm wxneeded . +(See also .Dv kern.wxabort in .Xr sysctl 2 -for more information). +for a method to diagnose failure). .El .Sh SEE ALSO .Xr madvise 2 , |