summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorbitblt <bitblt@openbsd.org>1996-09-27 01:52:01 +0000
committerbitblt <bitblt@openbsd.org>1996-09-27 01:52:01 +0000
commit900f20ae6fc0676a4b4182af08ba36a3625e739b (patch)
tree3de83a79e625d7e949b51b3f66cbed0ddbfe42a8 /sys/miscfs/procfs
parentDo not override sectors, track & secpercyl values set by the driver, it (diff)
downloadwireguard-openbsd-900f20ae6fc0676a4b4182af08ba36a3625e739b.tar.xz
wireguard-openbsd-900f20ae6fc0676a4b4182af08ba36a3625e739b.zip
Boy do I feel like a fool. I added a bugfix to Theos' changes, and then
discovered that I had commited a bunch of nonfunctional changes Theo had made, but not debugged. This undoes both my changes, and Theo's. When this code is functional, it will be put back in. Thank you for pointing this out to me David Mazieres.
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_ctl.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/miscfs/procfs/procfs_ctl.c b/sys/miscfs/procfs/procfs_ctl.c
index 1ebe5546fe3..98e90b6f04a 100644
--- a/sys/miscfs/procfs/procfs_ctl.c
+++ b/sys/miscfs/procfs/procfs_ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_ctl.c,v 1.3 1996/09/26 18:06:34 bitblt Exp $ */
+/* $OpenBSD: procfs_ctl.c,v 1.4 1996/09/27 01:52:01 bitblt Exp $ */
/* $NetBSD: procfs_ctl.c,v 1.14 1996/02/09 22:40:48 christos Exp $ */
/*
@@ -123,20 +123,6 @@ procfs_control(curp, p, op)
if (p->p_pid == curp->p_pid)
return (EINVAL);
- /*
- * it's not owned by you, or the last exec gave us
- * setuid/setgid privs (unless you're root),
- */
- if ((t->p_cred->p_ruid != p->p_cred->p_ruid ||
- ISSET(t->p_flag, P_SUGID)) &&
- (error = suser(p->p_ucred, &p->p_acflag)) != 0)
- return (error);
-
- /*
- * ...it's init, which controls the security level
- */
- if (t->p_pid == 1 && securelevel > 0)
- return (EPERM);
/*
* Go ahead and set the trace flag.