diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-08-23 11:26:58 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-08-23 11:26:58 +0000 |
commit | b7401f2f3dfd4097c71494ed417562845ed7bf4a (patch) | |
tree | b965450c91bc81ba5d26536c4f86ae5dbc793810 /sys/uvm | |
parent | c4708f1b3aac4f8d7034f5e5fdb7bf3475d7e7a9 (diff) |
map the heap without PROT_EXEC.
deraadt@ ok.
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_unix.c b/sys/uvm/uvm_unix.c index 98724938298..6bed872378d 100644 --- a/sys/uvm/uvm_unix.c +++ b/sys/uvm/uvm_unix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_unix.c,v 1.20 2001/12/19 08:58:07 art Exp $ */ +/* $OpenBSD: uvm_unix.c,v 1.21 2002/08/23 11:26:57 art Exp $ */ /* $NetBSD: uvm_unix.c,v 1.18 2000/09/13 15:00:25 thorpej Exp $ */ /* @@ -96,7 +96,7 @@ sys_obreak(p, v, retval) */ if (diff > 0) { rv = uvm_map(&vm->vm_map, &old, diff, NULL, UVM_UNKNOWN_OFFSET, - 0, UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_COPY, + 0, UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RWX, UVM_INH_COPY, UVM_ADV_NORMAL, UVM_FLAG_AMAPPAD|UVM_FLAG_FIXED| UVM_FLAG_OVERLAY|UVM_FLAG_COPYONW)); if (rv == KERN_SUCCESS) { |