From: Jon Masters Date: Mon, 21 Jan 2008 20:43:41 +0000 (+0000) Subject: module: add module taint on ndiswrapper X-Git-Tag: v2.6.25-rc1~1165^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0aa5bd52d0c49ca56d24584c646e6544ccbb3dc9;p=linux-2.6-omap-h63xx.git module: add module taint on ndiswrapper The struct module taints member is supposed to store per-module taint data. The kernel knows about certain specific external modules that will taint the kernel, such as ndiswrapper. Use of ndiswrapper possibly should set the per-module taint in addition to the global kernel taint flag, unless we're arguing not because wrapper module itself is not what actually causes the kernel to be tainted as such? Signed-off-by: Jon Masters Signed-off-by: Rusty Russell --- diff --git a/kernel/module.c b/kernel/module.c index e814cd7da63..af3f81a9474 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1916,7 +1916,7 @@ static struct module *load_module(void __user *umod, set_license(mod, get_modinfo(sechdrs, infoindex, "license")); if (strcmp(mod->name, "ndiswrapper") == 0) - add_taint(TAINT_PROPRIETARY_MODULE); + add_taint_module(mod, TAINT_PROPRIETARY_MODULE); if (strcmp(mod->name, "driverloader") == 0) add_taint_module(mod, TAINT_PROPRIETARY_MODULE);