Subject: CVS commit: [netbsd-1-6] syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 07/29/2002 18:37:29
Module Name:	syssrc
Committed By:	lukem
Date:		Mon Jul 29 15:37:29 UTC 2002

Modified Files:
	syssrc/sys/kern [netbsd-1-6]: kern_exit.c

Log Message:
Pull up revision 1.95 (requested by jdolocek in ticket #557):
Make sure that the pointer to old parent process for ptraced children
gets reset properly when the old parent exits before the child. A flag
is set in old parent process when the child is reparented in ptrace(2).
If it's set when process is exiting, all running processes have their
'old parent process' pointer checked and reset if appropriate. Also
change to use 'struct proc *' pointer directly, rather than pid_t.
This fixes security/14444 by David Sainty.
Reviewed by Christos Zoulas.


To generate a diff of this commit:
cvs rdiff -r1.93 -r1.93.6.1 syssrc/sys/kern/kern_exit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.