this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make mach_vm_protect() succeed (#304)

+4 -1
+4 -1
src/kernel/emulation/linux/mach/mach_traps.c
··· 203 203 int prot = 0; 204 204 int ret; 205 205 206 + // mach_vm_protect() on a remote process is not trivial to implement 207 + // in a LKM. We simulate success. At the same time, we allow mach_vm_write() 208 + // to work even if the target page is R/O (like ptrace(POKE_DATA)). 206 209 if (target != 0 && target != mach_task_self()) 207 - return KERN_FAILURE; 210 + return KERN_SUCCESS; 208 211 209 212 if (new_protection & VM_PROT_READ) 210 213 prot |= PROT_READ;