[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: W^X mmap
>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
"A potential Snark may lurk in every tree."
Main Index |
Thread Index |