[email protected] 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: [email protected]
"A potential Snark may lurk in every tree."
