Taint if virtualbox modules have been loaded.
This commit is contained in:
parent
8260326a96
commit
64f1bc96d9
@ -645,6 +645,7 @@ Patch09: linux-2.6-upstream-reverts.patch
|
||||
|
||||
# Standalone patches
|
||||
|
||||
Patch100: taint-vbox.patch
|
||||
Patch160: linux-2.6-32bit-mmap-exec-randomization.patch
|
||||
Patch161: linux-2.6-i386-nx-emulation.patch
|
||||
|
||||
@ -1204,6 +1205,8 @@ ApplyOptionalPatch linux-2.6-compile-fixes.patch
|
||||
ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
|
||||
|
||||
|
||||
ApplyPatch taint-vbox.patch
|
||||
|
||||
# Architecture patches
|
||||
# x86(-64)
|
||||
ApplyPatch linux-2.6-32bit-mmap-exec-randomization.patch
|
||||
@ -2049,6 +2052,9 @@ fi
|
||||
# ||----w |
|
||||
# || ||
|
||||
%changelog
|
||||
* Thu Oct 06 2011 Dave Jones <davej@redhat.com>
|
||||
- Taint if virtualbox modules have been loaded.
|
||||
|
||||
* Wed Oct 05 2011 Josh Boyer <jwboyer@redhat.com>
|
||||
- Linux 3.1-rc9
|
||||
|
||||
|
15
taint-vbox.patch
Normal file
15
taint-vbox.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/kernel/module.c b/kernel/module.c
|
||||
index 04379f92..d26c9a3 100644
|
||||
--- a/kernel/module.c
|
||||
+++ b/kernel/module.c
|
||||
@@ -2653,6 +2653,10 @@ static int check_module_license_and_versions(struct module *mod)
|
||||
if (strcmp(mod->name, "ndiswrapper") == 0)
|
||||
add_taint(TAINT_PROPRIETARY_MODULE);
|
||||
|
||||
+ /* vbox is garbage. */
|
||||
+ if (strcmp(mod->name, "vboxdrv") == 0)
|
||||
+ add_taint(TAINT_CRAP);
|
||||
+
|
||||
/* driverloader was caught wrongly pretending to be under GPL */
|
||||
if (strcmp(mod->name, "driverloader") == 0)
|
||||
add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
|
Loading…
Reference in New Issue
Block a user