login
Header Space

 
 

Re: Integrating securelevel and kauth(9)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Cc: <tech-security@...>, <tech-kern@...>
Date: Friday, March 24, 2006 - 5:24 pm

Garrett D'Amore wrote:


Yes, both "a" and "b" are planned to be done; sorry if it wasn't
implied... :)


Even though we can provide the wrapping to transparently hide the fact
that there are multiple knobs from users who don't care about it, I can
only assume some people will simply want to retain the traditional
behavior.

Either way, both of these decisions (generating a warning, removing the
kern.securelevel variable entirely) are ones that someone else will have
to make.


If kauth(9) will ever be integrated in NetBSD, it is not going to be
conditionally defined. The __HAVE_KERNELAUTH conditional was to
illustrate how a module that wants to support multiple versions of
NetBSD might be written in relevant parts.


Since you brought it up, there are two considerations we need to take
into account regarding kauth(9), the first being size (as you mentioned)
and the second being performance.

I have never compared the sizes of pre-kauth(9) and post-kauth(9)
kernels, but the changes that might affect the size are as follows:

  - Introduction of new code, the kauth(9) subsystem;
  - Removal of old code, mostly functions from kern/kern_prot.c;
  - Changing suser() calls to kauth_authorize_generic() calls;
  - Changing struct ucred/struct pcred accesses to kauth_cred_*()
    calls.

What would be a size difference that might make you worry? :)

As for performance, same list applies. There is a potential for slower
performance due to the way kauth(9) works: it dispatches authorization
requests to a list of listeners, making the amount of listeners directly
affect the performance of an authorization request.

My machines at home running kauth(9) have seen no performance impact at
all, but more testing on various architectures should be done to get
some "official" numbers...

-e.

-- 
Elad Efrat
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 1:56 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 12:42 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 2:29 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 3:04 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 3:10 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 3:40 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 3:50 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 4:54 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 5:08 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sun Mar 26, 6:45 am)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sun Mar 26, 1:57 pm)
Re: Integrating securelevel and kauth(9), Robert Watson, (Tue Mar 28, 7:34 am)
Re: Integrating securelevel and kauth(9), David Laight, (Tue Mar 28, 1:29 pm)
Re: Integrating securelevel and kauth(9), Robert Watson, (Tue Mar 28, 1:36 pm)
Re: Integrating securelevel and kauth(9), Daniel Carosone, (Tue Mar 28, 4:36 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sun Mar 26, 4:56 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sun Mar 26, 5:58 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Mon Mar 27, 6:57 am)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Mon Mar 27, 6:47 pm)
Re: Integrating securelevel and kauth(9), Matt Thomas, (Mon Mar 27, 9:37 pm)
Re: Integrating securelevel and kauth(9), Thomas E. Spanjaard, (Mon Mar 27, 9:18 pm)
Re: Integrating securelevel and kauth(9), Martin Husemann, (Mon Mar 27, 7:20 am)
Re: Integrating securelevel and kauth(9), Bill Studenmund, (Fri Mar 24, 6:44 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 6:56 pm)
Re: Integrating securelevel and kauth(9), Bill Studenmund, (Sat Mar 25, 2:05 pm)
Re: Integrating securelevel and kauth(9), David Laight, (Fri Mar 24, 3:01 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 5:51 pm)
Re: Integrating securelevel and kauth(9), Bill Studenmund, (Fri Mar 24, 6:29 pm)
Re: Integrating securelevel and kauth(9), Garrett D'Amore, (Fri Mar 24, 2:17 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 5:24 pm)
Re: Integrating securelevel and kauth(9), Matthew Mondor, (Sat Mar 25, 4:59 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 5:28 pm)
Re: Integrating securelevel and kauth(9), Matthew Mondor, (Sat Mar 25, 6:53 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 7:22 pm)
Re: Integrating securelevel and kauth(9), Garrett D'Amore, (Sat Mar 25, 9:07 pm)
Re: Integrating securelevel and kauth(9), Garrett D'Amore, (Fri Mar 24, 5:55 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 8:29 pm)
speck-geostationary