diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-19 02:36:28 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-19 02:36:28 +0000 |
commit | 5f3feb7c3c778f8b50862b6c3b2ad5e17ccc37c4 (patch) | |
tree | cae6b437930815480a44b08f154dd323dcb79c00 /sys/kern/exec_elf.c | |
parent | ccbb08936f0fdbd449a779f5b3e270902df1e5ed (diff) |
Dell's SVR4 apparently mapped page zero to the executable. We don't
do that and, given the security issues it exacerbates, never will.
So document it and delete the disabled support.
ok deraadt@ tedu@
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r-- | sys/kern/exec_elf.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index ae1a0af51d7..48b48c89a6a 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.70 2009/06/06 21:25:19 deraadt Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.71 2009/11/19 02:36:27 guenther Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -753,15 +753,6 @@ native: epp->ep_interp_pos = pos; } -#if defined(COMPAT_SVR4) && defined(i386) && 0 /* nothing sets OOS_DELL... */ -#ifndef ELF_MAP_PAGE_ZERO - /* Dell SVR4 maps page zero, yeuch! */ - if (p->p_os == OOS_DELL) -#endif - NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_readvn, PAGE_SIZE, 0, - epp->ep_vp, 0, VM_PROT_READ); -#endif - free(ph, M_TEMP); vn_marktext(epp->ep_vp); return (exec_setup_stack(p, epp)); |