don't remap region to READONLY

TODO: Should remap to its original state before fix to READ|WRITE
This commit is contained in:
nganhkhoa 2023-06-15 10:43:35 +07:00
parent fdccdca8a0
commit 9f54720e7b

View File

@ -757,9 +757,11 @@ void fix(struct libcache& cache) {
printf(" resolved=%llx(%p)\n", *(uint64_t*)fix_at, resolved);
}
for (int j = 0; j < npage_rw_fixed; j++) {
uint64_t start_page = page_rw_fixed[j];
vm_protect_func(mach_task_self_func(), start_page, 0x4000, 0, VM_PROT_READ);
// TODO: Reformat the region as per before, or leave as it
// for (int j = 0; j < npage_rw_fixed; j++) {
// uint64_t start_page = page_rw_fixed[j];
// vm_protect_func(mach_task_self_func(), start_page, 0x4000, 0, VM_PROT_READ);
// }
}
}