Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: W^X mmap
coypu%SDF.ORG@localhost writes:
>Why doesn't the following code get rejected by pax mprotect?
> a = mmap(NULL, BUFSIZ, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON, -1, 2);
It gets 'rejected' by silently dropping the PROT_EXEC flag.
POSIX would require mmap to fail with errno = EACCES.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index