Re: [PATCH v5 next 0/5] Improve Module autoloading infrastructure

From: Linus Torvalds
Date: Mon Nov 27 2017 - 13:41:37 EST


On Mon, Nov 27, 2017 at 9:18 AM, Djalal Harouni <tixxdz@xxxxxxxxx> wrote:
>
> The sysctl flag is available at "/proc/sys/kernel/modules_autoload_mode"
>
> When modules_autoload_mode is set to (0), the default, there are no
> restrictions.

So quick question: do we actually need this?

Yes, it may be the current default, but is it anything that people
actually depend on?

I'd have expected that most module loading comes from system actions
anyway, not normal users.

So I'd like to explore first whether it even makes sense to make a new option.

New options are bad because:

- opt-in security isn't security at all

- having to configure things is complex

so we should generally strive to _not_ need new random config options.

What are the real life use-cases for normal users having modules auto-load?

Linus