Skip to content

Commit 8ea8814

Browse files
Christoph HellwigJonathan Corbet
authored andcommitted
LICENSES: Clearly mark dual license only licenses
Just like the CDDL the Apache license and the MPL must only be used as a choice in additional to an GPL2 compatible license. Copy over the boilerplate from the CDDL file to the other two after fixing it up to make it clear the licenses need to be GPL2 compatible, not just the more generic GPL compatible. For example the Apache 2 license is GPL3 compatible, but that doesn't matter for the kernel. Also move these licenses to a separate directory and document the rules in license-rules.rst. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 6132c37 commit 8ea8814

4 files changed

Lines changed: 60 additions & 3 deletions

File tree

‎Documentation/process/license-rules.rst‎

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,56 @@ kernel, can be broken down into:
281281

282282
|
283283
284-
3. _`Exceptions`:
284+
3. Dual Licensing Only
285+
286+
These licenses should only be used to dual license code with another
287+
license in addition to a preferred license. These licenses are available
288+
from the directory::
289+
290+
LICENSES/dual/
291+
292+
in the kernel source tree.
293+
294+
The files in this directory contain the full license text and
295+
`Metatags`_. The file names are identical to the SPDX license
296+
identifier which shall be used for the license in source files.
297+
298+
Examples::
299+
300+
LICENSES/dual/MPL-1.1
301+
302+
Contains the Mozilla Public License version 1.1 license text and the
303+
required metatags::
304+
305+
LICENSES/dual/Apache-2.0
306+
307+
Contains the Apache License version 2.0 license text and the required
308+
metatags.
309+
310+
Metatags:
311+
312+
The metatag requirements for 'other' licenses are identical to the
313+
requirements of the `Preferred licenses`_.
314+
315+
File format example::
316+
317+
Valid-License-Identifier: MPL-1.1
318+
SPDX-URL: https://spdx.org/licenses/MPL-1.1.html
319+
Usage-Guide:
320+
Do NOT use. The MPL-1.1 is not GPL2 compatible. It may only be used for
321+
dual-licensed files where the other license is GPL2 compatible.
322+
If you end up using this it MUST be used together with a GPL2 compatible
323+
license using "OR".
324+
To use the Mozilla Public License version 1.1 put the following SPDX
325+
tag/value pair into a comment according to the placement guidelines in
326+
the licensing rules documentation:
327+
SPDX-License-Identifier: MPL-1.1
328+
License-Text:
329+
Full license text
330+
331+
|
332+
333+
4. _`Exceptions`:
285334

286335
Some licenses can be amended with exceptions which grant certain rights
287336
which the original license does not. These exceptions are available
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Valid-License-Identifier: Apache-2.0
22
SPDX-URL: https://spdx.org/licenses/Apache-2.0.html
33
Usage-Guide:
4+
Do NOT use. The Apache-2.0 is not GPL2 compatible. It may only be used
5+
for dual-licensed files where the other license is GPL2 compatible.
6+
If you end up using this it MUST be used together with a GPL2 compatible
7+
license using "OR".
48
To use the Apache License version 2.0 put the following SPDX tag/value
59
pair into a comment according to the placement guidelines in the
610
licensing rules documentation:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Valid-License-Identifier: CDDL-1.0
22
SPDX-URL: https://spdx.org/licenses/CDDL-1.0.html
33
Usage-Guide:
4-
Do NOT use. The CDDL-1.0 is not GPL compatible. It may only be used for
5-
dual-licensed files where the other license is GPL compatible.
4+
Do NOT use. The CDDL-1.0 is not GPL2 compatible. It may only be used for
5+
dual-licensed files where the other license is GPL2 compatible.
66
If you end up using this it MUST be used together with a GPL2 compatible
77
license using "OR".
88
To use the Common Development and Distribution License 1.0 put the
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Valid-License-Identifier: MPL-1.1
22
SPDX-URL: https://spdx.org/licenses/MPL-1.1.html
33
Usage-Guide:
4+
Do NOT use. The MPL-1.1 is not GPL2 compatible. It may only be used for
5+
dual-licensed files where the other license is GPL2 compatible.
6+
If you end up using this it MUST be used together with a GPL2 compatible
7+
license using "OR".
48
To use the Mozilla Public License version 1.1 put the following SPDX
59
tag/value pair into a comment according to the placement guidelines in
610
the licensing rules documentation:

0 commit comments

Comments
 (0)