Subject: Re: CVS commit: src/sys/kern
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: source-changes
Date: 09/13/2006 07:26:47
YAMAMOTO Takashi wrote:
> kauth_authorize_action and its wrappers return EPERM or such,
> not KAUTH_RESULT_*.
>
> ie. the correct usage is:
> error = kauth_authorize_action(...);
> if (error != 0) {
> return error;
> }
>
> you seem to have this bug in several places.
Well not really a bug because "allow" is 0, "deny" is 1 (EPERM)
intentionally, and yes, I'll get around to fixing it. :)
-e.
--
Elad Efrat