module: add config option MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
authorMatthias Maennich <maennich@google.com>
Fri, 6 Sep 2019 10:32:29 +0000 (11:32 +0100)
committerJessica Yu <jeyu@kernel.org>
Tue, 10 Sep 2019 08:30:27 +0000 (10:30 +0200)
commit3d52ec5e5d0dd7f8ca96a68c6756bd96e58b716b
tree51b5da97980203a40b9b1393ec5da9157d4d3215
parentcb9b55d21fe06ca5e4ba244bb5aac0afeb745c8e
module: add config option MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS

If MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is enabled (default=n), the
requirement for modules to import all namespaces that are used by
the module is relaxed.

Enabling this option effectively allows (invalid) modules to be loaded
while only a warning is emitted.

Disabling this option keeps the enforcement at module loading time and
loading is denied if the module's imports are not satisfactory.

Reviewed-by: Martijn Coenen <maco@android.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
init/Kconfig
kernel/module.c