aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorJon Masters <jonathan@jonmasters.org>2008-01-21 15:43:41 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-01-29 01:13:26 -0500
commit0aa5bd52d0c49ca56d24584c646e6544ccbb3dc9 (patch)
treeabce9de5d47992e5ccdfd052df022374d99f81a1 /kernel/module.c
parent8686c99875f3849047660a5b6d02438443f22ce7 (diff)
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 <jcm@jonmasters.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index e814cd7da634..af3f81a94745 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1916,7 +1916,7 @@ static struct module *load_module(void __user *umod,
1916 set_license(mod, get_modinfo(sechdrs, infoindex, "license")); 1916 set_license(mod, get_modinfo(sechdrs, infoindex, "license"));
1917 1917
1918 if (strcmp(mod->name, "ndiswrapper") == 0) 1918 if (strcmp(mod->name, "ndiswrapper") == 0)
1919 add_taint(TAINT_PROPRIETARY_MODULE); 1919 add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
1920 if (strcmp(mod->name, "driverloader") == 0) 1920 if (strcmp(mod->name, "driverloader") == 0)
1921 add_taint_module(mod, TAINT_PROPRIETARY_MODULE); 1921 add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
1922 1922