Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/compat/irix Pull up revision 1.19 (requested by jdo...



details:   https://anonhg.NetBSD.org/src/rev/27dc22cfa816
branches:  netbsd-1-6
changeset: 528642:27dc22cfa816
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Jul 29 15:39:08 2002 +0000

description:
Pull up revision 1.19 (requested by jdolocek in ticket #557):
Convert to use p_opptr rather than p_oppid. Part of fix for
security/14444 by David Sainty.

diffstat:

 sys/compat/irix/irix_signal.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 1b0a9592d1d8 -r 27dc22cfa816 sys/compat/irix/irix_signal.c
--- a/sys/compat/irix/irix_signal.c     Mon Jul 29 15:37:58 2002 +0000
+++ b/sys/compat/irix/irix_signal.c     Mon Jul 29 15:39:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_signal.c,v 1.14 2002/04/14 21:50:50 manu Exp $ */
+/*     $NetBSD: irix_signal.c,v 1.14.4.1 2002/07/29 15:39:08 lukem Exp $ */
 
 /*-
  * Copyright (c) 1994, 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.14 2002/04/14 21:50:50 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.14.4.1 2002/07/29 15:39:08 lukem Exp $");
 
 #include <sys/types.h>
 #include <sys/signal.h>
@@ -801,11 +801,10 @@
                         * parent a SIGCHLD.  The rest of the cleanup will be
                         * done when the old parent waits on the child.
                         */
-                       if ((q->p_flag & P_TRACED) &&
-                           q->p_oppid != q->p_pptr->p_pid) {
-                               t = pfind(q->p_oppid);
+                       if ((q->p_flag & P_TRACED) && q->p_opptr != q->p_pptr){
+                               t = q->p_opptr;
                                proc_reparent(q, t ? t : initproc);
-                               q->p_oppid = 0;
+                               q->p_opptr = NULL;
                                q->p_flag &= ~(P_TRACED|P_WAITED|P_FSTRACE);
                                psignal(q->p_pptr, SIGCHLD);
                                wakeup((caddr_t)q->p_pptr);



Home | Main Index | Thread Index | Old Index