Re: [PATCH] make LSM register functions GPLonly exports

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Thu Oct 17 2002 - 12:20:23 EST


On Thu, 17 Oct 2002, Christoph Hellwig wrote:

> On Thu, Oct 17, 2002 at 09:51:06AM -0700, Crispin Cowan wrote:
> > My argument against the intent of this change is that no, I do not think
> > we should restrict LSM modules to be GPL-only. LSM is an API for loading
> > externally developed packages of software, similar to syscalls. There is
> > benefit in permitting proprietary modules (you get additional modules
> > that you would not get otherwise) just as there is benefit in permitting
> > proprietary applications (you get Oracle, DB2, and WordPerfect).
>
> My arguement is that I want this flag as a hint for authors of
> propritary security modules that I'm going to sue them if they
> use hook called from code I have copyright on. This includes such
> central parts as vfs_read/vfs_write.

There is no way of preventing authors from using "your" code once
you publish it. They just can't claim that they wrote it without
violating copyright law. Copyrights and Licensing are two different
independent things. See a Lawyer.

The attached 'C' program, when linked with any proprietary module,
will bypass all the "EXPORT_GPL_ONLY" and similar "SCREW_YOU" macros.
To prevent using this or other similar work-arounds to road-blocks
thrown in the way of users, you would have to get GNU 'ld' to prevent
partial linking and make sure that all old copies have been destroyed.

This, by example, shows that "GPL Only" is unenforceable. I suggest
that all the "GPL only" zealots try something new (like more good code),
rather than attempting to prevent honest workers from using code
they helped develop.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.


/*
 * Since some in the Linux-kernel development group want to play
 * lawyer, and require that a GPL License exist for every kernel
 * module, we provide the following:
 *
 * Everything in this file (only) is released under the so-called
 * GNU Public License, incorporated herein by reference.
 *
 * Now, we just link this with any proprietary code and everybody
 * but the lawyers are happy.
 */
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include <linux/module.h>
#if defined(MODULE_LICENSE)
MODULE_LICENSE("GPL");
#endif
-
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 : Wed Oct 23 2002 - 22:00:36 EST