From: deraadt Date: Tue, 2 Mar 2021 17:43:04 +0000 (+0000) Subject: document ENOTSUP wxallowed/wxneeded behaviour more clearly; ok kurt X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fd874303f21d95e37c4b1c2e7e2d403ce351bd90;p=openbsd document ENOTSUP wxallowed/wxneeded behaviour more clearly; ok kurt --- 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 ,