artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72142c7
)
ok, must have read access at least.
author
pefo
<pefo@openbsd.org>
Thu, 12 Sep 1996 18:52:17 +0000
(18:52 +0000)
committer
pefo
<pefo@openbsd.org>
Thu, 12 Sep 1996 18:52:17 +0000
(18:52 +0000)
sys/kern/exec_elf.c
patch
|
blob
|
history
diff --git
a/sys/kern/exec_elf.c
b/sys/kern/exec_elf.c
index
a68c890
..
8b9c774
100644
(file)
--- a/
sys/kern/exec_elf.c
+++ b/
sys/kern/exec_elf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: exec_elf.c,v 1.1
6 1996/09/12 14:43:30
pefo Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.1
7 1996/09/12 18:52:17
pefo Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@
-320,6
+320,8
@@
elf_load_file(p, path, epp, ap, last)
error = EACCES;
goto bad;
}
+ if ((error = VOP_ACCESS(vp, VREAD, p->p_ucred, p)) != 0)
+ goto bad1;
if ((error = elf_read_from(p, nd.ni_vp, 0,
(caddr_t) &eh, sizeof(eh))) != 0)
goto bad1;