summaryrefslogtreecommitdiff
path: root/sys/kern/exec_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r--sys/kern/exec_elf.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 6f768c4a779..a68c890236e 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.15 1996/09/05 17:31:06 pefo Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.16 1996/09/12 14:43:30 pefo Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -320,15 +320,6 @@ elf_load_file(p, path, epp, ap, last)
error = EACCES;
goto bad;
}
- if ((error = VOP_ACCESS(vp, VEXEC, p->p_ucred, p)) != 0)
- goto bad;
- if ((epp->ep_vap->va_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0) {
- error = EACCES;
- goto bad;
- }
- if ((error = VOP_OPEN(vp, FREAD, p->p_ucred, p)) != 0)
- goto bad;
-
if ((error = elf_read_from(p, nd.ni_vp, 0,
(caddr_t) &eh, sizeof(eh))) != 0)
goto bad1;