3 ms·
Building a kernel isn't difficult (and used to be pretty much required). Build support in many distros is quite robust. The real challenge is that once you've
by dredmorbius 13y ago
Building a kernel isn't difficult (and used to be pretty much required). Build support in many distros is quite robust.
The real challenge is that once you've compiled a kernel, that's all you've got in terms of support. If you need to add filesystem support, a networking capability, additional driver support, etc., you've got to configure and build a new kernel, and test it, which is distinctly less convenient than autoloading an existing module (or even one you've newly compiled in many cases, on a running kernel).
I seem to recall a kernel option or syscontrol, possibly from OpenBSD/FreeBSD, which prevents loading of additional modules once it's been set. This allows you to boot and load modules, but then no more. If your boot media are read-only, this gives a fairly high level of confidence.
I cannot find a reference though.
- pedro84 13y agoOn linux: echo 1 > /proc/sys/kernel/modules_disabled http://www.outflux.net/blog/archives/2009/07/31/blocking-module-loading/
- dredmorbius 13y agoAwesome, thanks.
- einhverfr 13y agoFor a firewall, the hardware is pretty constant. You don't generally need new filesystems. It's just a matter of frequently downloading the source, compiling, and rebooting (with the option to boot back if something goes wrong). If you need to test, it isn't that hard to set up a testing environments with a duplicate set of hardware if you need high availability. For lower availability needs, testing in place is sufficient. For may consulting business, my availability needs were such that testing in place with the option to roll back was sufficient.
- GalacticDomin8r 13y agoYou are thinking of BSD's securelevel: http://www.freebsd.org/doc/en/books/faq/security.html http://www.freebsd.org/doc/en/books/faq/security.html