diff options
Diffstat (limited to 'share/security/patches/SA-00:77/procfs.4.2.patch')
-rw-r--r-- | share/security/patches/SA-00:77/procfs.4.2.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/share/security/patches/SA-00:77/procfs.4.2.patch b/share/security/patches/SA-00:77/procfs.4.2.patch deleted file mode 100644 index a518e18ff7..0000000000 --- a/share/security/patches/SA-00:77/procfs.4.2.patch +++ /dev/null @@ -1,40 +0,0 @@ -Index: miscfs/procfs/procfs_ctl.c -=================================================================== -RCS file: /home/ncvs/src/sys/miscfs/procfs/procfs_ctl.c,v -retrieving revision 1.20 -retrieving revision 1.20.2.1 -diff -u -r1.20 -r1.20.2.1 ---- miscfs/procfs/procfs_ctl.c 1999/12/08 08:59:36 1.20 -+++ miscfs/procfs/procfs_ctl.c 2000/12/17 03:13:05 1.20.2.1 -@@ -111,6 +111,20 @@ - int error; - - /* -+ * Authorization check: rely on normal debugging protection, except -+ * allow processes to disengage debugging on a process onto which -+ * they have previously attached, but no longer have permission to -+ * debug. -+ */ -+ if (op != PROCFS_CTL_DETACH) { -+ if (securelevel > 0 && p->p_pid == 1) -+ return (EPERM); -+ -+ if (!CHECKIO(curp, p) || p_trespass(curp, p)) -+ return (EPERM); -+ } -+ -+ /* - * Attach - attaches the target process for debugging - * by the calling process. - */ -@@ -122,10 +136,6 @@ - /* can't trace yourself! */ - if (p->p_pid == curp->p_pid) - return (EINVAL); -- -- /* can't trace init when securelevel > 0 */ -- if (securelevel > 0 && p->p_pid == 1) -- return (EPERM); - - /* - * Go ahead and set the trace flag. |