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:
Alan Cox 2009-04-11 22:34:08 +00:00
parent 78b5071407
commit b9519926e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190949

View File

@ -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;