Subject: Re: src/sys/kern/kern_prot.c, function crcmp
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 08/23/2005 06:33:28
In article <430A10AE.5030501@NetBSD.org>,
Roland Illig  <rillig@NetBSD.org> wrote:
>Christos Zoulas wrote:
>> The lists need to be equal since this determines if as new one will be
>> allocated or the one from the pool can be used. I.e. if crcmp always
>> returns 1, a new one will be allocated and the system will still work.
>
>Are you sure we're talking about the same function? I don't see any 
>allocation near the call to crcmp(), which is called by 
>vfs_hang_addrlist(), which is called by vfs_export(), which is called by 
>some mount functions. And even there is no allocation.

You are right, nevertheless, the export functions always tested for exact
credential matches.

christos