Why not remove the code?
Why not remove the code?
Posted Dec 8, 2017 15:14 UTC (Fri) by MarcB (subscriber, #101804)In reply to: Why not remove the code? by NAR
Parent article: Restricting automatic kernel-module loading
If you think about it, the current situation in Linux is really strange: Unprivileged users are not allowed to reconfigure an existing network protocol, for example to add an IP address. But they are allowed to enable a completely new protocol and expose its code to the network
Depending on the protocol, it might be completely auto-configuring, or it might just be a transport layer protocol on top an already configured protocol.
Even if everything is fine with this protocol's code, this seems very wrong to me. Only an administrator should be able to this. And it should not be necessary to use any blacklisting to prevent this, because combined with default distribution kernel configurations, that contain about everything, this is just absurd.
I like the approach suggested in https://lwn.net/Articles/740662/. With proper documentation, reasonable defaults and proper tools, this might work fine.
