I always thought it strange that Linux developers were so proud that the “kernel” had grown into the size of a cornfield. I imagine somewhere in there are both the code to handle a defunct dot matrix printer and a backdoor to the NSA.
NSA hacks aside, you can build your own kernel and deselect things which are not of interest in your environment.