Advice for Stripping the Kernel
M. Warner Losh
imp at bsdimp.com
Fri Jan 19 17:54:42 UTC 2007
In message: <1169198894.6838.6.camel at aRevolutionist>
aRevolutionist <a.revolutionist at gmail.com> writes:
: I am about to almost completely strip FreeBSD's kernel. The kernel shall
: be stripped of sockets, drivers, memory management, and alot more.
: Basically, what I shall be left with is a kernel with a few system
: calls, only paging for memory management, support for only one file
: system and a few other things. What advice does anyone have to give me
: before I begin? Also, what section of the kernel is recommended to begin
: the stripping?
Many of the items that you think you need to strip can be omitted with
options. One file system, for example, is easy: just compile with
only UFS support. Drivers are easy too. TCP/IP can be removed as
well.
However, the ability to have multiple mount points is hard to strip
out, and wouldn't get you much. I don't think that you can remove
sockets entirely without modifications to the kernel. Stripping down
the vm system would also be a challange.
What are you space contraints?
Warner
More information about the freebsd-hackers
mailing list