provided the end user wants/needs to have the whole toolchain on his boxes
at all. how many really do?
it's not only installation time (if you meant 'installing the box' itself),
but every time the kernel is updated, so the toolchain will be there forever.
in other words, it's a permanently unsolved problem ;). somehow i don't see
Red Hat selling RHEL for production boxes with the tag 'we do not debug crashes
here because we cannot' attached.
so no module support? what about kprobes and/or whatever else that generates
code at runtime?
so good-bye to large page support for kernel code? else there's likely
enough unused space left in the large pages for a rootkit to hide.
what if the rootkit finds unused pieces of actual code and replaces
that (bound to happen with those generic distro configs, especially
if you have to go with a non-modular kernel)?
last but not least, how would that 'lock that list down' work exactly?
what would prevent a rootkit from locating and modifying it as well?
what would you verify on the code? it's obfuscated so you can't really
analyze it (else you've just solved the attacker's problem), all you can
do is probably compute hashes but then you'll have to take care of kernel
self-patching and also protecting the hashes somehow.
--