Prevent self modifying code.
Hi,
1) In linux, is it possible to enforce that all pages with executable program code are automatically marked read-only? I.e. to actively prevent any self modifying code.
2) I know there is a NX(no execute) bit. Is that automatically applied to all read-write pages? i.e to stack and data pages.
3) Is it possible to ensure that the kernel is the only place that can take files with the +x bit set, and load the program code into memory then mark it as read-only, executable pages.
4) Is it possible to ensure that all jump tables used by the executable code are also read-only?
James
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>