Subject: Re: Process credentials change
To: Andrew Doran <ad@NetBSD.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 07/11/2006 09:34:41
On Jul 11, 2006, at 4:26 AM, Andrew Doran wrote:

> On the platforms I'm aware of we should be able to do the test  
> before the
> lock, because only the current thread can modify l->l_cred and the  
> read of
> p->p_cred is atomic.

Assuming that l_cred has retained the creds, then yah, that ought to  
be safe.

-- thorpej