From: Dave Jones Date: Sun, 8 Jan 2006 09:03:41 +0000 (-0800) Subject: [PATCH] Add tainting for proprietary helper modules X-Git-Tag: v2.6.16-rc1~743 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9841d61d75da5e46ed7a978bed4f50c78b1d87fd;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/module.c b/kernel/module.c index 4b06bbad49c..5d9078d6f0f 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1715,6 +1715,11 @@ static struct module *load_module(void __user *umod, /* Set up license info based on the info section */ set_license(mod, get_modinfo(sechdrs, infoindex, "license")); + if (strcmp(mod->name, "ndiswrapper") == 0) + add_taint(TAINT_PROPRIETARY_MODULE); + if (strcmp(mod->name, "driverloader") == 0) + add_taint(TAINT_PROPRIETARY_MODULE); + #ifdef CONFIG_MODULE_UNLOAD /* Set up MODINFO_ATTR fields */ setup_modinfo(mod, sechdrs, infoindex);