Some Bits: Nelson's log

Kernel module blacklist

Ran across a fun part of my Ubuntu system today, /etc/modprobe.d/blacklist*. It comes from the kmod package and contains a list of kernel modules which are included in the Linux sources, were compiled and shipped with Ubuntu, but nevertheless are being banned because someone made the choice they didn’t like the module. It’s kind of hilarious.

I can’t find a web-linkable version of the default Ubuntu files, but here are some gems from them. I suspect each entry here is a series of hard-earned lessons.

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# Framebuffer drivers are generally buggy and poorly-supported, and cause
# suspend failures, kernel panics and general mayhem.  For this reason we
# never load them automatically.

# Many less commonly used network protocols have recently had various
# security flaws discovered. In an effort to reduce the scope of future
# vulnerability exploitations, they are being blacklisted here so that
# unprivileged users cannot use them by default. System owners can still
# either modify this file, or specifically modprobe any needed protocols.

I was looking for this because I’m reinstalling Linux on my server and there’s still some drama about the r8169 driver, with some suggestions to lacklist it and build a vendor driver from source.

In the grand old days I used to build my own Linux kernels. But I always statically linked them, no loadable drivers, no init ramdisks. One kernel carefully sculpted to work on my one particular computer. It’s kind of a dumb way to make a system work.