mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc Boucher <marc@linuxant.com>
To: Nicolas Pitre <nico@cam.org>
Cc: Marc Boucher <marc@linuxant.com>,
	"Martin J. Bligh" <mbligh@aracnet.com>,
	Rik van Riel <riel@redhat.com>,
	Rusty Russell <rusty@rustcorp.com.au>,
	Linus Torvalds <torvalds@osdl.org>,
	Tim Connors <tconnors+linuxkernel1083378452@astro.swin.edu.au>,
	"'lkml - Kernel Mailing List'" <linux-kernel@vger.kernel.org>
Subject: [PATCH] clarify message and give support contact for non-GPL modules
Date: Sat, 1 May 2004 16:53:36 -0400	[thread overview]
Message-ID: <20040501205336.GA27607@valve.mbsi.ca> (raw)
In-Reply-To: <Pine.LNX.4.44.0405011529541.30657-100000@xanadu.home>

On Sat, May 01, 2004 at 03:47:15PM -0400, Nicolas Pitre wrote:
> On Sat, 1 May 2004, Marc Boucher wrote:
> 
> > Let's deal with the root problem and fix the messages, as Rik van Riel
> > has suggested.
> 
> Please do yourself and the rest of us a favor.  Stop waiting and _do_ submit
> a patch yourself for precisely that root problem.
> 
> That's what you should have done in the first place instead of being lazy,
> but it's not too late for Linuxant people to show they care about resolving
> this issue, and about the community they rely upon, as much as they care
> about their customers.

ok, please see tentative patch for 2.6 below, incorporating Rusty's change
to only emit the warning once, and Rik's suggestion to explicitly direct users
to the party responsible for support, if specified as
MODULE_AUTHOR("NAME <EMAIL>").

Constructive comments/improvements welcome.

Marc

-- 
Marc Boucher
Linuxant inc.

--- linux-2.6.6-rc3-bk3/kernel/module.c	2004-05-01 16:06:46.769778360 -0400
+++ linux-2.6.6-rc3-bk3-mb/kernel/module.c	2004-05-01 16:38:02.563614352 -0400
@@ -1125,15 +1125,18 @@
 		|| strcmp(license, "Dual MPL/GPL") == 0);
 }
 
-static void set_license(struct module *mod, const char *license)
+static void set_license(struct module *mod, const char *license, const char *author)
 {
 	if (!license)
 		license = "unspecified";
 
 	mod->license_gplok = license_is_gpl_compatible(license);
-	if (!mod->license_gplok) {
-		printk(KERN_WARNING "%s: module license '%s' taints kernel.\n",
-		       mod->name, license);
+	if (!mod->license_gplok && !(tainted & TAINT_PROPRIETARY_MODULE)) {
+		printk(KERN_INFO "%s: module has non-GPL license (%s).\n", mod->name, license);
+		if(author)
+			printk(KERN_INFO "%s: for any support issues, please contact %s\n", mod->name, author);
+		else
+			printk(KERN_INFO "%s: the Linux kernel community cannot resolve problems you may encounter when using this module.\n", mod->name);
 		tainted |= TAINT_PROPRIETARY_MODULE;
 	}
 }
@@ -1470,7 +1473,9 @@
 	module_unload_init(mod);
 
 	/* Set up license info based on the info section */
-	set_license(mod, get_modinfo(sechdrs, infoindex, "license"));
+	set_license(mod,
+		get_modinfo(sechdrs, infoindex, "license"),
+		get_modinfo(sechdrs, infoindex, "author"));
 
 	/* Fix up syms, so that st_value is a pointer to location. */
 	err = simplify_symbols(sechdrs, symindex, strtab, versindex, pcpuindex,

  reply	other threads:[~2004-05-01 20:53 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <009701c42edf$25e47390$ca41cb3f@amer.cisco.com>
2004-04-30 19:19 ` [PATCH] Blacklist binary-only modules lying about their license Linus Torvalds
2004-04-30 19:37   ` Hua Zhong
2004-04-30 22:47     ` Allowing only "-g" compiled modules! (was: [PATCH] Blacklist binary-only modules lying about their license) Jan-Benedict Glaw
2004-04-30 20:11   ` [PATCH] Blacklist binary-only modules lying about their license Marc Boucher
2004-04-30 20:26     ` Linus Torvalds
2004-04-30 20:39       ` Marc Boucher
2004-04-30 20:44         ` Linus Torvalds
2004-04-30 20:53           ` Marc Boucher
2004-04-30 21:05             ` Linus Torvalds
2004-04-30 21:10             ` Timothy Miller
2004-04-30 20:46         ` Sean Estabrooks
2004-04-30 20:34     ` Stefan Smietanowski
2004-04-30 20:47     ` A compromise that could have been reached. " Timothy Miller
2004-04-30 21:07       ` Marc Boucher
2004-04-30 21:16         ` Rik van Riel
2004-04-30 21:38         ` Timothy Miller
2004-04-30 22:05           ` Marc Boucher
2004-05-01  2:36           ` Tim Connors
2004-05-01  0:40     ` Jorge Bernal
2004-05-01  5:07     ` Martin J. Bligh
2004-05-01 19:12       ` Marc Boucher
2004-05-01 19:27         ` Davide Libenzi
2004-05-01 19:32         ` Zwane Mwaikambo
2004-05-01 19:33         ` Sean Estabrooks
2004-05-01 22:14           ` Randy.Dunlap
2004-05-01 19:47         ` Nicolas Pitre
2004-05-01 20:53           ` Marc Boucher [this message]
2004-05-01 21:34             ` [PATCH] clarify message and give support contact for non-GPL modules Sean Estabrooks
2004-05-01 21:48               ` Marc Boucher
2004-05-01 21:53                 ` Sean Estabrooks
2004-05-01 22:22                 ` Sean Estabrooks
2004-05-01 22:53                   ` Marc Boucher
2004-05-01 23:10                     ` viro
2004-05-02  7:04                       ` Xavier Bestel
2004-05-04 17:06                       ` Timothy Miller
2004-05-01 22:48                 ` Linus Torvalds
2004-05-01 23:28                   ` Marc Boucher
2004-05-02  0:22                     ` Linus Torvalds
2004-05-02  1:02                       ` Marc Boucher
2004-05-02 12:43                         ` Sean Estabrooks
2004-05-02 13:05                           ` Paul Rolland
2004-05-02 15:35                             ` Marc Boucher
2004-05-02 15:45                               ` Sean Estabrooks
2004-05-04 17:09                     ` Timothy Miller
2004-05-01 20:47         ` [PATCH] Blacklist binary-only modules lying about their license Martin J. Bligh
2004-05-01 20:58           ` Marc Boucher
2004-05-03  0:04         ` Horst von Brand
     [not found] ` <40929F5B.9090603@techsource.com>
2004-04-30 18:58   ` Hua Zhong
2004-04-30 20:14   ` Bartlomiej Zolnierkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040501205336.GA27607@valve.mbsi.ca \
    --to=marc@linuxant.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=nico@cam.org \
    --cc=riel@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=tconnors+linuxkernel1083378452@astro.swin.edu.au \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®