Re: GPLONLY kernel symbols???

Wayne Whitney
2001-10-17T19:34:16Z

In mailing-lists.linux-kernel, Pierre-Philippe Coupard wrote:

> The kernel doesn't actually do anything with the "tainted" flag,
> insmod does. So you have to compile things as module and insmod
> them, and insmod will dump a message if the MODULE_LICENSE thing
> isn't in the module. If you compile things inside the kernel instead
> of modules, you will see nothing and /proc/sys/kernel/tainted will
> contain 0, which is wrong.

I think the idea is that if you compile something inside the kernel,
you have the source, so at least from the debugging point of view, the
kernel has not been tainted by a binary-only module.

It seems like people (collectively) have two different purposes in
mind for /proc/sys/kernel/tainted: ensuring that only "open source"
modules are used, for debugging purposes, and ensuring that only
"GPL-compatible" modules are used, for possible legal purposes. If
both of these are desirable, perhaps the two purposes should be
separated into two /proc files?

Cheers, Wayne