[PATCH] clarify message and give support contact for non-GPL modules

From: Marc Boucher (marc_at_linuxant.com)
Date: 05/01/04

  • Next message: Marc Boucher: "Re: [PATCH] Blacklist binary-only modules lying about their license"
    Date:	Sat, 1 May 2004 16:53:36 -0400
    To: Nicolas Pitre <nico@cam.org>
    
    

    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,
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Marc Boucher: "Re: [PATCH] Blacklist binary-only modules lying about their license"

    Relevant Pages

    • Re: IE 6 wont open
      ... I had already done that first thing this morning and IE 6 is working OK with the patch, so possibly it was just a bad download, or confusion with other patches done at the same time. ... The suggestion to format/clean install on my CD writing problem is a bit like calling a plumber to fix a leaky faucet and being told to tear down my house and rebuild it, hoping that will fix the problem. ... They could not figure out why Windows lost the ability to directly write to the new DVD/CD-RW drive. ...
      (microsoft.public.windowsxp.general)
    • Re: Whats in git.git
      ... I am afraid it diverges too much from the traditional ... It was not so much a suggestion, but a misinterpretation of your patch. ... Fix geometry on rootless X ...
      (Linux-Kernel)
    • [PATCH v4 0/9] KVM MMU: allow more shadow pages become asynchronous
      ... Changlog v4: ... fix the bug that reported by Marcelo ... Those changes all form Avi's suggestion, ... use smart way to fix the bug in patch 1 ...
      (Linux-Kernel)
    • Re: [PATCH v3 0/10] KVM MMU: allow more shadow pages become asynchronous
      ... Those changes all form Avi's suggestion, ... use smart way to fix the bug in patch 1 ... check error code and fix forgot release page in patch 9 ... Marker shadow page as unsync at create time avoid write-protect, ...
      (Linux-Kernel)
    • [PATCH v3 0/10] KVM MMU: allow more shadow pages become asynchronous
      ... Changlog v3: ... Those changes all form Avi's suggestion, ... use smart way to fix the bug in patch 1 ... check error code and fix forgot release page in patch 9 ...
      (Linux-Kernel)