summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_elf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2018-07-20 21:57:26 +0000
committerderaadt <deraadt@openbsd.org>2018-07-20 21:57:26 +0000
commit68a19ea97895289fd2dfeeeec2a14ca7c852b512 (patch)
treea0a363474573ac3ad06b9fb9bac43590e869902a /sys/kern/exec_elf.c
parentFail if a PT_LOAD segment has a memory size of 0. This prevents a panic (diff)
downloadwireguard-openbsd-68a19ea97895289fd2dfeeeec2a14ca7c852b512.tar.xz
wireguard-openbsd-68a19ea97895289fd2dfeeeec2a14ca7c852b512.zip
Remove a few leftovers from the days of emulation, which could result in
a bad/corrupt binary not returning ENOEXEC but some other error. ok guenther kettenis bluhm
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r--sys/kern/exec_elf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 328e549157b..4af0134b9b0 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.144 2018/07/20 21:48:27 kettenis Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.145 2018/07/20 21:57:26 deraadt Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -147,8 +147,7 @@ struct emul emul_elf = {
coredump_elf,
sigcode,
esigcode,
- sigcoderet,
- EMUL_ENABLED | EMUL_NATIVE,
+ sigcoderet
};
/*