summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-27 07:32:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-27 07:32:14 +0000
commitbf9928833e266260436d77a345724aa6ce1d7edd (patch)
tree8c791c77e8eb8bbfc725388b2ae8239c0e1aa26f /sys/miscfs/procfs
parent8887c4463087928913ef641714aab0e3fdfd7a98 (diff)
securelevels do NOT protect running binaries; only filesystem activity
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 4cba8007b2e..a20716360a4 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vnops.c,v 1.10 1998/06/09 18:13:48 deraadt Exp $ */
+/* $OpenBSD: procfs_vnops.c,v 1.11 1998/06/27 07:32:11 deraadt Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */
/*
@@ -219,7 +219,6 @@ procfs_open(v)
struct pfsnode *pfs = VTOPFS(ap->a_vp);
struct proc *p1 = ap->a_p; /* tracer */
struct proc *p2; /* traced */
- struct vattr va;
int error;
if ((p2 = PFIND(pfs->pfs_pid)) == 0)
@@ -234,12 +233,6 @@ procfs_open(v)
if ((error = procfs_checkioperm(p1, p2)) != 0)
return (error);
- error = VOP_GETATTR(p2->p_textvp, &va, p1->p_ucred, p1);
- if (error)
- return (error);
- if (va.va_flags & IMMUTABLE)
- return (EPERM);
-
if (ap->a_mode & FWRITE)
pfs->pfs_flags = ap->a_mode & (FWRITE|O_EXCL);