News for hackers. Stuff that matters.
Re:Linux's GPLv2 licence is routinely violated (2015) by tsimionescu on Sunday February 20, 2022 @02:44AM (#30403992)
Let's imagine the following scenario. I am creating and distributing a program that, when run on a user's system, will dynamically link with a copy of libc. I am not distributing this copy, but my program will fail to run if no such copy exists. Furthermore, I tell my customers that the only lib C I officially support is FictitiousLibC, released under the full GPL (not the LGPL like the real GNU Libc).

The question is now: am I breaking any laws by delivering my program this way? According to the FSF, which believes an explicit linking exception to the GPL is needed - the LGPL - for such uses, then YES, I am breaking the copyright of FictitiousLibC, and so would need a license from FicititiousLibC to be allowed to distribute my code. But, if copyright law actually says "no, your program is NOT a derived work of FictitiousLibC", then the license is not needed. I don't know if this has ever been tested in court, but nothing would stop Congress from explicitly legislating this way and basically removing the difference between GPL and LGPL.

For an example of where this sort of logic applies is building programs to be run on an OS. If I build a program that only runs on Windows, but don't include any of Microsoft's code in my program, it is well established that my program is not a derived work of the Windows OS, so I can freely distribute it under any terms I want (not that Windows is special, the same is true of Linux or iOS or any other OS). I am not claiming that running on an OS is the same as dynamically linking with a library, just that in general something can be related to a copyrighted work without becoming a derived work by virtue of copyright law, not license terms.

Edit: note that if I want to distribute a bundle of my program + FictitiousLibC, that may infringe on FLC's license even if my program alone wouldn't, as FLC's license's terms of what constitutes a derived work could, in that case, go beyond copyright law definitions, and I would obviously need that license to be allowed to re-distribute FLC.

Re:Linux's GPLv2 licence is routinely violated (2015) by belorn on Sunday February 20, 2022 @03:16AM (#30404152)
Let's remove the license and just look at what copyright says in order to understand your example. You have some copyrighted work and you want to make copies, and you do not have a copyright license from the author of said work. It this legal? Answer is mostly going to be no, especially if you are going to sell the copies. Commercially exploiting someones else's copyrighted work without a license is very often illegal.

Now let's say you do have a license, and the license is GPL. The license says that you have permission as long you do not combine the library using a linker with other programs that is not GPL. Do you have permission to copy the work if you disregard the conditions of the license? Likely answer: no.

Copyright do have a few exceptions. If you bought a copyrighted work like say Microsoft Word, there is an exception that says that you can also make a copy in memory in order to run it. Copyright law in some countries needed to be updated to do this, while in other places it occurred through precedents, but it was something that needed to occur. There might also exist a similar exception for running the program under Microsoft Windows, including using libraries called DLLs. Exceptions to the exclusivity of copyright is sometimes needed in order for the world to make sense.

The legal question then that remain is if the situation with FictitiousLibC has such an exception. That is less certain. There might be a copyright law exception, or there might not exist. What do you think?

Re:Linux's GPLv2 licence is routinely violated (2015) by tsimionescu on Sunday February 20, 2022 @03:51AM (#30404270)
The main point of my argument, and the main concern I feel with GPL-style licenses, is the notion of "do I have to distribute my work under the terms of the GPL even if I don't distribute any GPL code directly; in other words, when is my program a derived work of a GPL work?". If instead I am distributing GPL code directly, the question is more clear - as you say, copyright law makes few exceptions there.

But again, if my program doesn't directly include any code at all from a GPL work, but it does depend on such code to exist on the end-user system, knowing in what circumstances my code is a derived work and thus can only be distributed under the terms of the GPL is much harder.

This is exactly the case of the kernel modules: the people distributing the kernel modules are often NOT distributing Linux itself. But, can their modules be considered derived works of the Linux kernel?

Note that this kind of question can also arise in traditional copyright. I can make a play that very much resembles a novel, and depending on many ultimately subjective factors my play may or may not be considered a derived work of that novel. If I am directly including substantial parts of the novel, then the answer is pretty clear, but a work that doesn't have a single word of the original can still be a derived work (most obviously, a translation is a derived work, but it likely literally doesn't include a single word in common with the original work).

Re:Linux's GPLv2 licence is routinely violated (2015) by butlerm on Sunday February 20, 2022 @07:28AM (#30405174)
Unfortunately the FSF's idea of what a derivative work is largely something they made up with no basis in statutory law and which has never been tested in court. It basically consists of wishful thinking on their part.

In the US, a derivative work has a legal definition in Title 17 of the United States Code, and anything that is purportedly a derivative work that doesn't clearly fall under the legal definition or established common law on the subject is of little matter. Lawyers love to engage in wishful thinking on behalf of their clients and rarely get anywhere because they are not neutral arbiters but rather advocates for a one sided position of one kind or another.

In this case FSF associated lawyers appear to be completely out of touch with reality, but are incredibly influential in persuading others to be equally out of touch. And what more could you ask of an advocate for your position than that? A reality distortion field for hire.

Re:Linux's GPLv2 licence is routinely violated (2015) by hnfong on Sunday February 20, 2022 @10:54AM (#30406621)
> has never been tested in court

This used to be true, but arguably the GPL has been tested in court in the infamous Oracle v Google case. (Java is licensed under the GPL among other licenses)

It looks like the Supreme Court said "sure... whatever, Fair Use, I guess". Are APIs copyrightable in general? God knows. But at least you have a case from a top court deciding that in some cases you can actually copy all the APIs in a GPL'ed Java library.

Totally agree with FSF making stuff up though. The reality distortion field they have is pretty legit. I don't think people even realized how the Java case could have impacted the interpretation of GPL and that it was actually a high profile allegation of GPL violation.

Oh well shrug

Re:Linux's GPLv2 licence is routinely violated (2015) by butlerm on Sunday February 20, 2022 @11:27AM (#30406876)
The claims that have never been tested in court here aren't part of the license, but rather commentary as to what constitutes a derivative work under copyright law. If true, they would affect the legality of a number of practices that apparently do not require distributing or modifying licensed components or accepting the license at all.

If loading and running a program with dynamically linked modules with incompatible licenses creates a legally prohibited derivative work in memory, that is a reasonable claim that the author copyright holders of some of the code could pursue the users in question about. That is not what is controversial though.

The controversial claim is that by merely making a module that is link or use compatible with another module a legally prohibited derivative work has been created. Not by incorporating inline code, or copying the structure, sequence, or organization of another module, but merely by making something that is compatible in the abstract. Where is the legal basis for this claim? It is apparently nowhere, little more than wishful thinking.

Re:Linux's GPLv2 licence is routinely violated (2015) by hnfong on Sunday February 20, 2022 @12:05PM (#30407174)
> commentary as to what constitutes a derivative work under copyright law

That's part of my point actually. The question of API copyrightability in the Java case has a lot to do with whether copying APIs/ABIs in the code (whether from headers or binary symbol tables) is copyright infringement.

That said, it's unfortunately true that the conclusion is far from clear. (Sidenote -- given that the Supreme Court dodged the question, does it mean that the Court of Appeals decisions still hold? [I'm not familiar with the US legal system])

Re:Linux's GPLv2 licence is routinely violated (2015) by butlerm on Monday February 21, 2022 @04:40AM (#30413710)
The Supreme Court conclusively established that Google's use of the APIs was fair use under copyright law, so they did not need to reach the underlying question. I believe it would be safe to conclude that API descriptions such as header files are protected by copyright even in their essentials, that fair use is necessary to reproduce them without a license, and that Congress would need to act to create a more reliable exemption for that sort of thing.

Court of Appeals decisions are only binding precedents within the corresponding regions, but they generally have persuasive force throughout the country until and unless the Supreme Court overrules them.

Re:Linux's GPLv2 licence is routinely violated (2015) by hnfong on Monday February 21, 2022 @11:11AM (#30417401)
Pretty sure the way they teach law students is to first determine whether a work is covered by copyright before going on to fair use... :D

But then, it's the Supreme Court so nobody's gonna fail their papers...

Re:Linux's GPLv2 licence is routinely violated (2015) by tsimionescu on Sunday February 20, 2022 @12:51PM (#30407545)
I don't think Google v Oracle had anything to do with the GPL. The Java API is not licensed under the GPL, even if the main implementation, OpenJDK is. Alternate JDKs (Microsoft's old JDK, Visual J++, for a famous case) had to obtain special licenses from Sun and later Oracle, that included terms which are very different from the GPL (in particular, these JVMs had to be fully compatible with Java, you were not allowed to create a partially compatible JVM; and there were further restrictions on JVMs that targetted mobile/embedded devices).

The whole trial also stopped at the copyight-ability and fair-use grounds, it never looked at any license Google might have had (they didn't have any license to use the Java API, but the SC finally found that no license was needed, as even if the API may be copyrightable, Google's use would fall under fair use exemptions).

Re:Linux's GPLv2 licence is routinely violated (2015) by seba_dos1 on Sunday February 20, 2022 @10:03AM (#30406219)
If you persuade enough people to be "out of touch with reality", they're not out of touch with reality anymore, because it's the reality that got changed.
Re:Linux's GPLv2 licence is routinely violated (2015) by butlerm on Sunday February 20, 2022 @11:10AM (#30406748)
That may be true, but in this case the relevant parties to be persuaded are federal appellate judges before it can fairly be said that reality has changed on the ground. How likely they are to be persuaded by a position that has no apparent basis in the statutory text is a real question. As far as I can tell, no one making these rather unusual claims has even tried to outline such an argument.

Why should anyone be persuaded by a legal position that has internal logic that has never been explicated anywhere? If lawyer A writes to lawyer B claiming that B's client is creating a derivative work but cannot explain why, lawyer B is more than justified in laughing them to scorn.

Even if B did create a derivative work according to some unknown and unheard of legal argument acceptable to the courts, fair use could apply anyway. But one can hardly begin to look at the fair use factors if lawyer A could not even identify how a legally cognizable derivative work is being created in the first place.

Re:Linux's GPLv2 licence is routinely violated (2015) by belorn on Sunday February 20, 2022 @01:19PM (#30407875)
"do I have to distribute my work under the terms of the GPL even if I don't distribute any GPL code directly"

That is an interesting question that have a handful court case in the US, however the result has gone both way. The primary example of that has been cheat software that injects into copyrighted games, which both goes again the copyright and EULA of the game. In the example of blizzard, there is cases when they won against the cheat software on copyright grounds, as you can read here: (https://massivelyop.com/2020/02/28/lawful-neutral-cheating-c...).

Basically, the art of work that get created when you run software is also a kind of copyrighted work, and a bit like how movie character is copyrighted as well as an actually movie itself. If a second company make a new movie with the same characters, story and so on, even if its all "original" code, it is still a derivative work. The article above describe those as "non-literal elements", the graphics, sounds, animations and characters produced by the literal code.

So to answer the question "when is my program a derived work of a GPL work", it would seem to be when the non-literal elements of the GPL is changed in ways that require copyright permissions by the GPL author.

It should be noted however that in practically all cases involving the linux kernel, companies that distribute non-gpl kernel modules are also distributing the kernel as part of products.

Re:Linux's GPLv2 licence is routinely violated (2015) by Gaelan on Sunday February 20, 2022 @08:11AM (#30405397)
> I am not claiming that running on an OS is the same as dynamically linking with a library

In pretty much any case, it literally is: you're dynamically linking against the libc. This is a little fuzzier on Linux (because, as you mention, multiple libc implementations exist), but on Windows, macOS, and the BSDs, the only supported way to make syscalls is to make calls into a dynamically linked libc, provided by the operating system.

Re:Linux's GPLv2 licence is routinely violated (2015) by tsimionescu on Sunday February 20, 2022 @01:27PM (#30407976)
Well, theoretically you could make a (pretty useless) Windows program that doesn't do any syscalls itself. It would mostly be limited to heating up the processor, but it would be a valid program. In fact, you could probably actually do some basic syscalls without linking to NTDLL by using very old DOS syscalls for things like printing to the console, perhaps with a compatibility mode.

Also, being pedantic, in Windows libc is a wrapper over Win32, which is partly itself a wrapper over NTDLL. For example, msvc's malloc() simply calls HeapAlloc() or some variant thereof.

Re:Linux's GPLv2 licence is routinely violated (2015) by xorcist on Sunday February 20, 2022 @05:32AM (#30404711)
> According to the FSF, [...] then YES, I am breaking the copyright

The FSF have actual copyright lawyers on hand. Where have they said this?

The example is not very easy to understand. In general copyright law isn't really applicable to your own right to distribute your own original work.

Re:Linux's GPLv2 licence is routinely violated (2015) by tsimionescu on Sunday February 20, 2022 @12:21PM (#30407292)
> The FSF have actual copyright lawyers on hand. Where have they said this?

It is part of the official GPL FAQ [0].

  Does the GPL have different requirements for statically vs dynamically linked modules with a covered work? (#GPLStaticVsDynamic)

     No. Linking a GPL covered work statically or dynamically with other modules is making a combined work based on the GPL covered work. Thus, the terms and conditions of the GNU General Public License cover the whole combination. [...]
> The example is not very easy to understand. In general copyright law isn't really applicable to your own right to distribute your own original work.

The very question is if my work is original. If I create a program that only works when (dynamically) linked with a (GPL) library, is my program an original work, or is it a derived work of that (GPL) library? This is a question that has not really been settled in court; the official opinion of the FSF is clear: it is a derived work.

If the explicit question in the GPL FAQ is not engouth, note again that the whole purpose of the LGPL (and other GPL+exemptions licenses, such as Java's and GCC's) when compared to the GPL is to allow this type of use, which they clearly would not have created unless they believe it would not be allowed for a full GPL library.

[0] https://www.gnu.org/licenses/gpl-faq.en.html#GPLStaticVsDyna...