Source-Changes archive

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

Re: CVS commit: src/sys/kern



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



Home | Main Index | Thread Index | Old Index