Open Yaxuan-w opened 3 months ago
Nacl will allocate some memory in text segment region, whose permission is denied by default, to run executables (eg: libcgcc_s.so.1). I need to change permission in mmap_syscall
. Current solution is:
In mmap_syscall
:
libc::mprotect
to change the permissionreadat
to map corresponding file into the memory
When hooking with NaCl and run
/hello.nexe
, mmap issues:Plan to treat as normal read() / write()