Subject: Re: CVS commit: [elad-kernelauth] src/sys/kern
To: Elad Efrat <elad@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 03/11/2006 21:54:08
On Sat, Mar 11, 2006 at 05:08:42AM +0000, Elad Efrat wrote:
> 
> Module Name:	src
> Committed By:	elad
> Date:		Sat Mar 11 05:08:42 UTC 2006
> 
> Modified Files:
> 	src/sys/kern [elad-kernelauth]: kern_auth.c
> 
> Log Message:
> Get rid of the memcmp() call in kauth_cred_compare(), and just iterate
> over the groups in the struct uucred and check each of them with a call
> to kauth_cred_ismember_gid().

Are you really sure you want to replace a memcmp() with an O(n^2) operation ?

	David

-- 
David Laight: david@l8s.co.uk