diff options
author | guido <guido@FreeBSD.org> | 2004-03-18 20:58:51 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 2004-03-18 20:58:51 +0000 |
commit | 365db5dd01b85276d53134f9ea822f82253fba23 (patch) | |
tree | ca4397c35f90c0e388bb6ae52f153c0faa130189 /lib/libc/stdlib/hcreate.c | |
parent | 12c28227775bffc834e599b852c0f92a43a634b0 (diff) | |
download | FreeBSD-src-365db5dd01b85276d53134f9ea822f82253fba23.zip FreeBSD-src-365db5dd01b85276d53134f9ea822f82253fba23.tar.gz |
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
Diffstat (limited to 'lib/libc/stdlib/hcreate.c')
0 files changed, 0 insertions, 0 deletions