aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-05-04 20:04:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-04 20:04:16 -0400
commit826e4506a0acb6487910a5ebafe839f708a00e1c (patch)
tree20cc66b6b38c0414930d85a8a9705a3a3eff8ddf /init
parentafa26be86b65a7183ceac29bdf1f51d6fc6932f0 (diff)
Make forced module loading optional
The kernel module loader used to be much too happy to allow loading of modules for the wrong kernel version by default. For example, if you had MODVERSIONS enabled, but tried to load a module with no version info, it would happily load it and taint the kernel - whether it was likely to actually work or not! Generally, such forced module loading should be considered a really really bad idea, so make it conditional on a new config option (MODULE_FORCE_LOAD), and make it default to off. If somebody really wants to force module loads, that's their problem, but we should not encourage it. Especially as it happened to me by mistake (ie regular unversioned Fedora modules getting loaded) causing lots of strange behavior. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 6a44defac3ec..f0e62e5ce0dc 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -825,6 +825,15 @@ menuconfig MODULES
825 825
826 If unsure, say Y. 826 If unsure, say Y.
827 827
828config MODULE_FORCE_LOAD
829 bool "Forced module loading"
830 depends on MODULES
831 default n
832 help
833 This option allows loading of modules even if that would set the
834 'F' (forced) taint, due to lack of version info. Which is
835 usually a really bad idea.
836
828config MODULE_UNLOAD 837config MODULE_UNLOAD
829 bool "Module unloading" 838 bool "Module unloading"
830 depends on MODULES 839 depends on MODULES