kauth
NetBSD's kernel authorization framework, which replaced scattered "is this root?" checks with a question to one central authority.
Traditionally every part of a Unix kernel checked for itself whether the caller had user ID 0. Elad Efrat built kauth for NetBSD 4.0 (2007), modelled on Apple's framework of the same name in Mac OS X. Kernel code now asks about an action within a "scope" — process, network, system — and registered listeners vote allow, deny or defer.
Listeners are grouped into security models, or secmodels. Classic BSD semantics, superuser plus securelevel, is itself just one such model and can be swapped or extended without touching the rest of the kernel. The thinking is the same as behind Linux Security Modules: keep the policy in one place, not in a thousand if-statements.