public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Taint kernel when lve module is loaded
@ 2012-06-22 17:49 Matthew Garrett
  2012-06-22 18:43 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Matthew Garrett @ 2012-06-22 17:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: rusty, Matthew Garrett, Alex Lyashkov

Cloudlinux have a product called lve that includes a kernel module. This
was previously GPLed but is now under a proprietary license, but the
module continues to declare MODULE_LICENSE("GPL") and makes use of some
EXPORT_SYMBOL_GPL symbols. Forcibly taint it in order to avoid this.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Alex Lyashkov <umka@cloudlinux.com>
---
 kernel/module.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/module.c b/kernel/module.c
index 4edbd9c..9ad9ee9 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2730,6 +2730,10 @@ static int check_module_license_and_versions(struct module *mod)
 	if (strcmp(mod->name, "driverloader") == 0)
 		add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
 
+	/* lve claims to be GPL but upstream won't provide source */
+	if (strcmp(mod->name, "lve") == 0)
+		add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
+
 #ifdef CONFIG_MODVERSIONS
 	if ((mod->num_syms && !mod->crcs)
 	    || (mod->num_gpl_syms && !mod->gpl_crcs)
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread
[parent not found: <fa.WTHIDfGYg3w7zn9rxlDshNfnPtI@ifi.uio.no>]

end of thread, other threads:[~2012-07-11 15:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 17:49 [PATCH] Taint kernel when lve module is loaded Matthew Garrett
2012-06-22 18:43 ` Greg KH
2012-06-22 18:51   ` Matthew Garrett
2012-06-22 19:22     ` Greg KH
2012-06-22 19:43       ` Greg KH
2012-06-22 19:09 ` richard -rw- weinberger
2012-06-22 19:40   ` Greg KH
2012-06-23  0:00 ` Rusty Russell
     [not found] <fa.WTHIDfGYg3w7zn9rxlDshNfnPtI@ifi.uio.no>
2012-06-23 15:07 ` iseletsk
2012-06-24  6:39   ` Greg KH
2012-06-24  7:33   ` Mike Galbraith
     [not found] ` <fa.lxvUw3/2JBxq1zvQzI4sJk8pEOQ@ifi.uio.no>
     [not found]   ` <fa.Fdbx7aeDSXKMF/2ajG0IUf0AAKs@ifi.uio.no>
     [not found]     ` <fa.TAjdtaR/BMl+PZAWwtAit9BevAo@ifi.uio.no>
     [not found]       ` <fa.cm6Pl6ITE2qRnrdz/DXqaOSgExs@ifi.uio.no>
2012-06-23 19:26         ` iseletsk
2012-06-24  6:35           ` Greg KH
     [not found]             ` <CA+-XxSG8mpERvUwKgG4M8=ZuSd3P+ZYfw5mL3R4zLTAYGPW3Mw@mail.gmail.com>
2012-07-11 15:26               ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox