Re: [PATCH] [RFC] Module licence and EXPORT_SYMBOL_GPL

From: Rusty Russell (rusty@rustcorp.com.au)
Date: Fri Jan 03 2003 - 00:19:13 EST


In message <Pine.LNX.4.44.0301022025200.1700-100000@home.transmeta.com> you wri
te:
>
> On Fri, 3 Jan 2003, Rusty Russell wrote:
> >
> > Linus, your options:
> > 1) Drop the patch and leave well enough alone.
> > 2) Just keep the module licence taint check.
> > 3) Say OK to the whole thing (once I've tested it against latest bk).
>
> Hmm.. Can you make the "module_is_gpl()" thing a load-time check, and
> instead of carrying the license string along at run-time, you just carry
> the "I'm GPL-ok'd" bit along.

Just call it ".init.license" instead of ".license" and you're done:
it's never used at runtime (well, setting the mod->license field to
NULL after init to make sure noone abuses it might make sense).

I'll test it now...
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/



This archive was generated by hypermail 2b29 : Tue Jan 07 2003 - 22:00:20 EST