Subject: Re: kauth and access to process credentials
To: None <tech-kern@netbsd.org, tech-security@netbsd.org>
From: Roland Illig <rillig@NetBSD.org>
List: tech-security
Date: 02/18/2007 23:57:46
David Laight wrote:
> On Sun, Feb 18, 2007 at 10:34:02AM -0500, Thor Lancelot Simon wrote:
>>Why don't we put the accessor functions in a header file and make them
>>inline?
> 
> Or #defines, I have no problem with that.

What about an option INLINE_KAUTH_CALLS? When enabled, the inline 
functions are called, including the exposed structure. When disabled, 
the standard functions are called.

In the standard kernels, INLINE_KAUTH_CALLS should then be disabled, to 
force developers to stick to the abstract interface.

Roland