Subject: Re: CVS commit: src/sys/kern
To: None <ad@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 07/19/2006 08:53:43
> Module Name:	src
> Committed By:	ad
> Date:		Mon Jul 17 15:29:06 UTC 2006
> 
> Modified Files:
> 	src/sys/kern: kern_exec.c kern_fork.c kern_prot.c
> 
> Log Message:
> - Always make p->p_cred a private copy before modifying.
> - Share credentials among processes when forking.

do you have a plan to add some locking?
"p->p_cred = kauth_cred_copy(p->p_cred);" is not safe
as kauth_cred_copy can sleep.

YAMAMOTO Takashi