diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index cd98be975e34..6bb991742929 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -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;