aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-01-08 04:03:41 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-08 23:13:59 -0500
commit9841d61d75da5e46ed7a978bed4f50c78b1d87fd (patch)
treefae0f4af69456d6c70ac1ea9c91e0cfc6544d5e2 /kernel
parentf867bac65419a98c9682f4409e087582d29ec5f6 (diff)
[PATCH] Add tainting for proprietary helper modules
Kernels that have had Windows drivers loaded into them are undebuggable. I've wasted a number of hours chasing bugs filed in Fedora bugzilla only to find out much later that the user had used such 'helpers', and their problems were unreproducable without them loaded. Acked-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 4b06bbad49c2..5d9078d6f0fa 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1715,6 +1715,11 @@ static struct module *load_module(void __user *umod,
1715 /* Set up license info based on the info section */ 1715 /* Set up license info based on the info section */
1716 set_license(mod, get_modinfo(sechdrs, infoindex, "license")); 1716 set_license(mod, get_modinfo(sechdrs, infoindex, "license"));
1717 1717
1718 if (strcmp(mod->name, "ndiswrapper") == 0)
1719 add_taint(TAINT_PROPRIETARY_MODULE);
1720 if (strcmp(mod->name, "driverloader") == 0)
1721 add_taint(TAINT_PROPRIETARY_MODULE);
1722
1718#ifdef CONFIG_MODULE_UNLOAD 1723#ifdef CONFIG_MODULE_UNLOAD
1719 /* Set up MODINFO_ATTR fields */ 1724 /* Set up MODINFO_ATTR fields */
1720 setup_modinfo(mod, sechdrs, infoindex); 1725 setup_modinfo(mod, sechdrs, infoindex);