summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-12-15 02:24:24 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-12-15 02:24:24 +0000
commitf61f2ae4bb51d8b7a9ee01c2989522f336618d7d (patch)
tree5a1de4696d0daa317cad34f8858407df1e10805f /sys/kern/kern_exec.c
parentec8373aeb4f1b524b9597fc90351bc52eb411ca2 (diff)
Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,
eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index ae79aae943c..461bdec341a 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.150 2014/12/10 02:44:46 tedu Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.151 2014/12/15 02:24:23 guenther Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -834,7 +834,7 @@ exec_sigcode_map(struct process *pr, struct emul *e)
if ((r = uvm_map(kernel_map, &va, round_page(sz), e->e_sigobject,
0, 0, UVM_MAPFLAG(PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE,
- UVM_INH_SHARE, POSIX_MADV_RANDOM, 0)))) {
+ MAP_INHERIT_SHARE, POSIX_MADV_RANDOM, 0)))) {
uao_detach(e->e_sigobject);
return (ENOMEM);
}
@@ -846,7 +846,7 @@ exec_sigcode_map(struct process *pr, struct emul *e)
uao_reference(e->e_sigobject);
if (uvm_map(&pr->ps_vmspace->vm_map, &pr->ps_sigcode, round_page(sz),
e->e_sigobject, 0, 0, UVM_MAPFLAG(PROT_READ | PROT_EXEC,
- PROT_READ | PROT_EXEC, UVM_INH_SHARE, POSIX_MADV_RANDOM, 0))) {
+ PROT_READ | PROT_EXEC, MAP_INHERIT_SHARE, POSIX_MADV_RANDOM, 0))) {
uao_detach(e->e_sigobject);
return (ENOMEM);
}