阅读记忆保护

use*_*100 5 memory

我想知道linux是否有一种检索内存保护的方法.就像,我希望恢复使用mprotect更改后存在的保护.

184*_*615 4

根据 davidg 的回答,这里是来自github 上 reDroid 项目的unsigned int read_mprotection(void* addr)函数: re_mrot.c、re_mrot.h(该代码适用于 Android,它应该可以移植到其他 Linux)。