Source-Changes archive

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

Re: CVS commit: [elad-kernelauth] src/sys/kern



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@localhost



Home | Main Index | Thread Index | Old Index