cvs commit: src/sys/vm vm_mmap.c
Nate Lawson
nate at root.org
Thu Mar 18 13:26:52 PST 2004
On Thu, 18 Mar 2004, Guido van Rooij wrote:
> guido 2004/03/18 12:58:51 PST
>
> FreeBSD src repository
>
> Modified files:
> sys/vm vm_mmap.c
> Log:
> When mmap-ing a file from a noexec mount, be sure not to grant the right
> to mmap it PROT_EXEC. This also depends on the architecture, as some
> architextures (e.g. i386) do not distinguish between read and exec pages
>
> Inspired by: http://linux.bkbits.net:8080/linux-2.4/cset@1.1267.1.85
> Reviewed by: alc
>
> Revision Changes Path
> 1.186 +5 -1 src/sys/vm/vm_mmap.c
Prescott and AMD64 have a no-exec page bit now.
-Nate
More information about the cvs-src
mailing list