[kernel/f16] Taint if virtualbox modules have been loaded.
Dave Jones
davej at fedoraproject.org
Thu Oct 6 22:49:57 UTC 2011
commit 885bf3a7eb5058b8dc0f2107404fa811bfdf224f
Author: Dave Jones <davej at redhat.com>
Date: Thu Oct 6 18:37:12 2011 -0400
Taint if virtualbox modules have been loaded.
kernel.spec | 5 +++++
taint-vbox.patch | 15 +++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 6bebdec..8a4257a 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -644,6 +644,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
@@ -1216,6 +1217,7 @@ ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
ApplyPatch arm-omap-dt-compat.patch
ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
+ApplyPatch taint-vbox.patch
#
# NX Emulation
#
@@ -2052,6 +2054,9 @@ fi
# and build.
%changelog
+* Thu Oct 06 2011 Dave Jones <davej at redhat.com>
+- Taint if virtualbox modules have been loaded.
+
* Wed Oct 05 2011 Chuck Ebbert <cebbert at redhat.com> 3.1.0-0.rc9.git0.0
- Linux 3.1-rc9
diff --git a/taint-vbox.patch b/taint-vbox.patch
new file mode 100644
index 0000000..5cb3e47
--- /dev/null
+++ b/taint-vbox.patch
@@ -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);
More information about the scm-commits
mailing list