Remove execute permission from the memory allocated by sbrk().
Pre-announced on: -arch (3/31/09) Discussed with: rwatson Tested by: marius (sparc64)
This commit is contained in:
parent
78b5071407
commit
b9519926e6
@ -117,7 +117,7 @@ obreak(td, uap)
|
||||
goto done;
|
||||
}
|
||||
rv = vm_map_insert(&vm->vm_map, NULL, 0, old, new,
|
||||
VM_PROT_ALL, VM_PROT_ALL, 0);
|
||||
VM_PROT_RW, VM_PROT_ALL, 0);
|
||||
if (rv != KERN_SUCCESS) {
|
||||
error = ENOMEM;
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user