diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-03-02 17:43:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-03-02 17:43:05 +0000 |
commit | aabc69c42a2b1ff946cb776f5d980b9bfb038b13 (patch) | |
tree | cb525048216c2954224fcb90c44ab93fb06d07e4 /lib | |
parent | e53956dc2e2b8aaef2bf9b6b07707e840bd77c6f (diff) |
document ENOTSUP wxallowed/wxneeded behaviour more clearly; ok kurt
Diffstat (limited to 'lib')
-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 , |