diff options
author | bitblt <bitblt@cvs.openbsd.org> | 1996-09-27 01:52:02 +0000 |
---|---|---|
committer | bitblt <bitblt@cvs.openbsd.org> | 1996-09-27 01:52:02 +0000 |
commit | 8fb3199efa2d3941fc67ab38e48fefeebb91c017 (patch) | |
tree | e0f70a617f76d58fede91500b3973fc88060db38 /sys/miscfs/procfs | |
parent | e71a261aa387a38e76f9fa0e244fcd1480739d6d (diff) |
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.c | 16 |
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. |