我想知道linux是否有一种检索内存保护的方法。就像,我想恢复使用 mprotect 更改后存在的保护。
最佳答案
根据 davidg 的回答,这里是函数 unsigned int read_mprotection(void* addr)
:
re_mprot.c , re_mprot.h来自 the reDroid project at github (代码适用于Android,它应该可以移植到其他Linux)。
关于memory - 读内存保护,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2152958/