c++ - What does the PROT_EXEC flag do in mprotect? -


from page: http://linux.die.net/man/2/mprotect

i understand flags except prot_exec. effect of calling

mprotect(ptr, size, prot_exec); 

from manual page link to:

prot_exec

the memory can executed.

it marks memory executable, meaning can contain code can call , run.


Comments