Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christoph Hellwig and committed by
Jonathan Corbet
8ea8814f 6132c37c

+60 -3
+50 -1
Documentation/process/license-rules.rst
··· 281 281 282 282 | 283 283 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`: 285 334 286 335 Some licenses can be amended with exceptions which grant certain rights 287 336 which the original license does not. These exceptions are available
+4
LICENSES/other/Apache-2.0 LICENSES/dual/Apache-2.0
··· 1 1 Valid-License-Identifier: Apache-2.0 2 2 SPDX-URL: https://spdx.org/licenses/Apache-2.0.html 3 3 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". 4 8 To use the Apache License version 2.0 put the following SPDX tag/value 5 9 pair into a comment according to the placement guidelines in the 6 10 licensing rules documentation:
+2 -2
LICENSES/other/CDDL-1.0 LICENSES/dual/CDDL-1.0
··· 1 1 Valid-License-Identifier: CDDL-1.0 2 2 SPDX-URL: https://spdx.org/licenses/CDDL-1.0.html 3 3 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. 6 6 If you end up using this it MUST be used together with a GPL2 compatible 7 7 license using "OR". 8 8 To use the Common Development and Distribution License 1.0 put the
+4
LICENSES/other/MPL-1.1 LICENSES/dual/MPL-1.1
··· 1 1 Valid-License-Identifier: MPL-1.1 2 2 SPDX-URL: https://spdx.org/licenses/MPL-1.1.html 3 3 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". 4 8 To use the Mozilla Public License version 1.1 put the following SPDX 5 9 tag/value pair into a comment according to the placement guidelines in 6 10 the licensing rules documentation: