Subject: Re: CVS commit: src/sys/kern
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 09/11/2006 16:40:41
YAMAMOTO Takashi wrote:
> the simplest one would be:
>
> boolean_t
> listeners_have_not_been_initialized_yet()
> {
> return number_of_listeners_loaded_in_this_system == 0;
> }
Is there a point for having a count? How about:
(global in kern_auth.c)
static boolean_t have_listeners = 0;
(in kauth_listen_scope)
have_listeners = TRUE;
(in kauth_authorize_action)
if (have_listeners == FALSE)
/* whatever */
-e.
--
Elad Efrat