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
| Karl Meyer | PROBLEM: 2.6.23-rc "NETDEV WATCHDOG: eth0: transmit timed out" |
| David Miller | Slow DOWN, please!!! |
| Mark Fasheh | [PATCH 0/39] Ocfs2 updates for 2.6.28 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Shawn O. Pearce | Re: pack operation is thrashing my server |
| Pierre Habouzit | git send-email improvements |
| Matthieu Moy | git push to a non-bare repository |
| Shawn O. Pearce | libgit2 - a true git library |
| Elad Efrat | Integrating securelevel and kauth(9) |
| Hubert Feyrer | Re: Compressed vnd handling tested successfully |
| Lord Isildur | Re: Fork bomb protection patch |
| Matt Thomas | Re: FFS journal |
| Will Maier | cron doesn't run commands in /etc/crontab? |
| Richard Stallman | Real men don't attack straw men |
| Harald Dunkel | Re: Packet Filter: how to keep device names on hardware failure? |
| Jordi Espasa Clofent | Resolving dependencies with pkg_add |
| Question on swap as ramdisk partition | 1 hour ago | Linux kernel |
| Netfilter kernel module | 11 hours ago | Linux kernel |
| serial driver xmit problem | 14 hours ago | Linux kernel |
| Why Windows is better than Linux | 14 hours ago | Linux general |
| How can I see my kernel messages in vt12? | 21 hours ago | Linux kernel |
| Grub | 1 day ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 2 days ago | Linux general |
