diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 00:49:47 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2003-05-09 00:49:47 +0000 |
commit | 3ea73cf62735879926b6ac0a200a87b292ffd415 (patch) | |
tree | 64ae36154e157d72cb184ef9962c8698f1e063ad /sys/kern/init_main.c | |
parent | 1567d4b3ec1b725c0bd3817596aef986a91e4296 (diff) |
Don't map the fake arg list for init with X permissions.
niklas@ tdeval@ ok
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 7311cf58904..ab8b820d19a 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.101 2003/03/06 17:06:18 mickey Exp $ */ +/* $OpenBSD: init_main.c,v 1.102 2003/05/09 00:49:46 art Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -503,7 +503,7 @@ start_init(arg) #endif if (uvm_map(&p->p_vmspace->vm_map, &addr, PAGE_SIZE, NULL, UVM_UNKNOWN_OFFSET, 0, - UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_COPY, + UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_ALL, UVM_INH_COPY, UVM_ADV_NORMAL, UVM_FLAG_FIXED|UVM_FLAG_OVERLAY|UVM_FLAG_COPYONW))) panic("init: couldn't allocate argument space"); p->p_vmspace->vm_maxsaddr = (caddr_t)addr; |