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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190949
@ -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