Restricting automatic kernel-module loading
Restricting automatic kernel-module loading
Posted Dec 4, 2017 21:42 UTC (Mon) by neilbrown (subscriber, #359)Parent article: Restricting automatic kernel-module loading
> If this knob is set to zero (the default), autoloading works as it does in current kernels. Setting it to one restricts autoloading to processes with specific capabilities: processes with CAP_SYS_MODULE can cause any module to be loaded, while those with CAP_NET_ADMIN can autoload any module whose alias starts with netdev-. Setting this knob to two disables autoloading entirely. Once this value has been raised above zero, it cannot be lowered during the lifetime of the system.
One day we developers will grow up and understand that "always", "by-capability", and "never" are more human-readable than "0", "1", and "2".
Today, it seems, is not that day.
