6sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/process/license-rulesmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/process/license-rulesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/process/license-rulesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/process/license-rulesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/process/license-rulesmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/process/license-rulesmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/process/license-rules.rsthKubhtarget)}(h.. _kernel_licensing:h]h}(h]h ]h"]h$]h&]refidkernel-licensinguh1hhKhhhhhhubhsection)}(hhh](htitle)}(hLinux kernel licensing rulesh]hLinux kernel licensing rules}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hX The Linux Kernel is provided under the terms of the GNU General Public License version 2 only (GPL-2.0), as provided in LICENSES/preferred/GPL-2.0, with an explicit syscall exception described in LICENSES/exceptions/Linux-syscall-note, as described in the COPYING file.h]hX The Linux Kernel is provided under the terms of the GNU General Public License version 2 only (GPL-2.0), as provided in LICENSES/preferred/GPL-2.0, with an explicit syscall exception described in LICENSES/exceptions/Linux-syscall-note, as described in the COPYING file.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hThis documentation file provides a description of how each source file should be annotated to make its license clear and unambiguous. It doesn't replace the Kernel's license.h]hThis documentation file provides a description of how each source file should be annotated to make its license clear and unambiguous. It doesn’t replace the Kernel’s license.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hThe license described in the COPYING file applies to the kernel source as a whole, though individual source files can have a different license which is required to be compatible with the GPL-2.0::h]hThe license described in the COPYING file applies to the kernel source as a whole, though individual source files can have a different license which is required to be compatible with the GPL-2.0:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh literal_block)}(hXUGPL-1.0+ : GNU General Public License v1.0 or later GPL-2.0+ : GNU General Public License v2.0 or later LGPL-2.0 : GNU Library General Public License v2 only LGPL-2.0+ : GNU Library General Public License v2 or later LGPL-2.1 : GNU Lesser General Public License v2.1 only LGPL-2.1+ : GNU Lesser General Public License v2.1 or laterh]hXUGPL-1.0+ : GNU General Public License v1.0 or later GPL-2.0+ : GNU General Public License v2.0 or later LGPL-2.0 : GNU Library General Public License v2 only LGPL-2.0+ : GNU Library General Public License v2 or later LGPL-2.1 : GNU Lesser General Public License v2.1 only LGPL-2.1+ : GNU Lesser General Public License v2.1 or later}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhhhhubh)}(hAside from that, individual files can be provided under a dual license, e.g. one of the compatible GPL variants and alternatively under a permissive license like BSD, MIT etc.h]hAside from that, individual files can be provided under a dual license, e.g. one of the compatible GPL variants and alternatively under a permissive license like BSD, MIT etc.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXThe User-space API (UAPI) header files, which describe the interface of user-space programs to the kernel are a special case. According to the note in the kernel COPYING file, the syscall interface is a clear boundary, which does not extend the GPL requirements to any software which uses it to communicate with the kernel. Because the UAPI headers must be includable into any source files which create an executable running on the Linux kernel, the exception must be documented by a special license expression.h]hXThe User-space API (UAPI) header files, which describe the interface of user-space programs to the kernel are a special case. According to the note in the kernel COPYING file, the syscall interface is a clear boundary, which does not extend the GPL requirements to any software which uses it to communicate with the kernel. Because the UAPI headers must be includable into any source files which create an executable running on the Linux kernel, the exception must be documented by a special license expression.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hX The common way of expressing the license of a source file is to add the matching boilerplate text into the top comment of the file. Due to formatting, typos etc. these "boilerplates" are hard to validate for tools which are used in the context of license compliance.h]hXThe common way of expressing the license of a source file is to add the matching boilerplate text into the top comment of the file. Due to formatting, typos etc. these “boilerplates” are hard to validate for tools which are used in the context of license compliance.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hhhhubh)}(hXAn alternative to boilerplate text is the use of Software Package Data Exchange (SPDX) license identifiers in each source file. SPDX license identifiers are machine parsable and precise shorthands for the license under which the content of the file is contributed. SPDX license identifiers are managed by the SPDX Workgroup at the Linux Foundation and have been agreed on by partners throughout the industry, tool vendors, and legal teams. For further information see https://spdx.org/h](hXAn alternative to boilerplate text is the use of Software Package Data Exchange (SPDX) license identifiers in each source file. SPDX license identifiers are machine parsable and precise shorthands for the license under which the content of the file is contributed. SPDX license identifiers are managed by the SPDX Workgroup at the Linux Foundation and have been agreed on by partners throughout the industry, tool vendors, and legal teams. For further information see }(hj=hhhNhNubh reference)}(hhttps://spdx.org/h]hhttps://spdx.org/}(hjGhhhNhNubah}(h]h ]h"]h$]h&]refurijIuh1jEhj=ubeh}(h]h ]h"]h$]h&]uh1hhhhK-hhhhubh)}(hXThe Linux kernel requires the precise SPDX identifier in all source files. The valid identifiers used in the kernel are explained in the section `License identifiers`_ and have been retrieved from the official SPDX license list at https://spdx.org/licenses/ along with the license texts.h](hThe Linux kernel requires the precise SPDX identifier in all source files. The valid identifiers used in the kernel are explained in the section }(hj\hhhNhNubjF)}(h`License identifiers`_h]hLicense identifiers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]nameLicense identifiershlicense-identifiersuh1jEhj\resolvedKubh@ and have been retrieved from the official SPDX license list at }(hj\hhhNhNubjF)}(hhttps://spdx.org/licenses/h]hhttps://spdx.org/licenses/}(hjzhhhNhNubah}(h]h ]h"]h$]h&]refurij|uh1jEhj\ubh along with the license texts.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK5hhhhubh)}(hhh](h)}(hLicense identifier syntaxh]hLicense identifier syntax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK;ubhenumerated_list)}(hhh]h list_item)}(hXNPlacement: The SPDX license identifier in kernel files shall be added at the first possible line in a file which can contain a comment. For the majority of files this is the first line, except for scripts which require the '#!PATH_TO_INTERPRETER' in the first line. For those scripts the SPDX identifier goes into the second line. h](h)}(h Placement:h]h Placement:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubh)}(hXAThe SPDX license identifier in kernel files shall be added at the first possible line in a file which can contain a comment. For the majority of files this is the first line, except for scripts which require the '#!PATH_TO_INTERPRETER' in the first line. For those scripts the SPDX identifier goes into the second line.h]hXEThe SPDX license identifier in kernel files shall be added at the first possible line in a file which can contain a comment. For the majority of files this is the first line, except for scripts which require the ‘#!PATH_TO_INTERPRETER’ in the first line. For those scripts the SPDX identifier goes into the second line.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhjhhhhhK=ubh line_block)}(hhh]hh)}(hhh]h}(h]h ]h"]h$]h&]uh1hhjhhhhhKindentKubah}(h]h ]h"]h$]h&]uh1jhjhhhhhKEubj)}(hhh]j)}(hXStyle: The SPDX license identifier is added in form of a comment. The comment style depends on the file type:: C source: // SPDX-License-Identifier: C header: /* SPDX-License-Identifier: */ ASM: /* SPDX-License-Identifier: */ scripts: # SPDX-License-Identifier: .rst: .. SPDX-License-Identifier: .dts{i}: // SPDX-License-Identifier: If a specific tool cannot handle the standard comment style, then the appropriate comment mechanism which the tool accepts shall be used. This is the reason for having the "/\* \*/" style comment in C header files. There was build breakage observed with generated .lds files where 'ld' failed to parse the C++ comment. This has been fixed by now, but there are still older assembler tools which cannot handle C++ style comments. h](h)}(hStyle:h]hStyle:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhjubh)}(hhThe SPDX license identifier is added in form of a comment. The comment style depends on the file type::h]hgThe SPDX license identifier is added in form of a comment. The comment style depends on the file type:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhjubj)}(hXC source: // SPDX-License-Identifier: C header: /* SPDX-License-Identifier: */ ASM: /* SPDX-License-Identifier: */ scripts: # SPDX-License-Identifier: .rst: .. SPDX-License-Identifier: .dts{i}: // SPDX-License-Identifier: h]hXC source: // SPDX-License-Identifier: C header: /* SPDX-License-Identifier: */ ASM: /* SPDX-License-Identifier: */ scripts: # SPDX-License-Identifier: .rst: .. SPDX-License-Identifier: .dts{i}: // SPDX-License-Identifier: }hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKLhjubh)}(hXIf a specific tool cannot handle the standard comment style, then the appropriate comment mechanism which the tool accepts shall be used. This is the reason for having the "/\* \*/" style comment in C header files. There was build breakage observed with generated .lds files where 'ld' failed to parse the C++ comment. This has been fixed by now, but there are still older assembler tools which cannot handle C++ style comments.h]hXIf a specific tool cannot handle the standard comment style, then the appropriate comment mechanism which the tool accepts shall be used. This is the reason for having the “/* */” style comment in C header files. There was build breakage observed with generated .lds files where ‘ld’ failed to parse the C++ comment. This has been fixed by now, but there are still older assembler tools which cannot handle C++ style comments.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjstartKuh1jhjhhhhhKGubj)}(hhh]j)}(hhh]h}(h]h ]h"]h$]h&]uh1hhj>hhhhhKjKubah}(h]h ]h"]h$]h&]uh1jhjhhhhhK[ubj)}(hhh]j)}(hX; Syntax: A is either an SPDX short form license identifier found on the SPDX License List, or the combination of two SPDX short form license identifiers separated by "WITH" when a license exception applies. When multiple licenses apply, an expression consists of keywords "AND", "OR" separating sub-expressions and surrounded by "(", ")" . License identifiers for licenses like [L]GPL with the 'or later' option are constructed by using a "+" for indicating the 'or later' option.:: // SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: LGPL-2.1+ WITH should be used when there is a modifier to a license needed. For example, the linux kernel UAPI files use the expression:: // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note // SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note Other examples using WITH exceptions found in the kernel are:: // SPDX-License-Identifier: GPL-2.0 WITH mif-exception // SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0 Exceptions can only be used with particular License identifiers. The valid License identifiers are listed in the tags of the exception text file. For details see the point `Exceptions`_ in the chapter `License identifiers`_. OR should be used if the file is dual licensed and only one license is to be selected. For example, some dtsi files are available under dual licenses:: // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause Examples from the kernel for license expressions in dual licensed files:: // SPDX-License-Identifier: GPL-2.0 OR MIT // SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause // SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 // SPDX-License-Identifier: GPL-2.0 OR MPL-1.1 // SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT // SPDX-License-Identifier: GPL-1.0+ OR BSD-3-Clause OR OpenSSL AND should be used if the file has multiple licenses whose terms all apply to use the file. For example, if code is inherited from another project and permission has been given to put it in the kernel, but the original license terms need to remain in effect:: // SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) AND MIT Another other example where both sets of license terms need to be adhered to is:: // SPDX-License-Identifier: GPL-1.0+ AND LGPL-2.1+ h](h)}(hSyntax:h]hSyntax:}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hjSubh)}(hXdA is either an SPDX short form license identifier found on the SPDX License List, or the combination of two SPDX short form license identifiers separated by "WITH" when a license exception applies. When multiple licenses apply, an expression consists of keywords "AND", "OR" separating sub-expressions and surrounded by "(", ")" .h]hXxA is either an SPDX short form license identifier found on the SPDX License List, or the combination of two SPDX short form license identifiers separated by “WITH” when a license exception applies. When multiple licenses apply, an expression consists of keywords “AND”, “OR” separating sub-expressions and surrounded by “(”, “)” .}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjSubh)}(hLicense identifiers for licenses like [L]GPL with the 'or later' option are constructed by using a "+" for indicating the 'or later' option.::h]hLicense identifiers for licenses like [L]GPL with the ‘or later’ option are constructed by using a “+” for indicating the ‘or later’ option.:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjSubj)}(hJ// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: LGPL-2.1+h]hJ// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: LGPL-2.1+}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKihjSubh)}(hWITH should be used when there is a modifier to a license needed. For example, the linux kernel UAPI files use the expression::h]h~WITH should be used when there is a modifier to a license needed. For example, the linux kernel UAPI files use the expression:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjSubj)}(hx// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note // SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-noteh]hx// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note // SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKohjSubh)}(h>Other examples using WITH exceptions found in the kernel are::h]h=Other examples using WITH exceptions found in the kernel are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjSubj)}(hr// SPDX-License-Identifier: GPL-2.0 WITH mif-exception // SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0h]hr// SPDX-License-Identifier: GPL-2.0 WITH mif-exception // SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKthjSubh)}(hExceptions can only be used with particular License identifiers. The valid License identifiers are listed in the tags of the exception text file. For details see the point `Exceptions`_ in the chapter `License identifiers`_.h](hExceptions can only be used with particular License identifiers. The valid License identifiers are listed in the tags of the exception text file. For details see the point }(hjhhhNhNubjF)}(h `Exceptions`_h]h Exceptions}(hjhhhNhNubah}(h]h ]h"]h$]h&]name Exceptionsh exceptionsuh1jEhjjuKubh in the chapter }(hjhhhNhNubjF)}(h`License identifiers`_h]hLicense identifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameLicense identifiershjtuh1jEhjjuKubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKwhjSubh)}(hOR should be used if the file is dual licensed and only one license is to be selected. For example, some dtsi files are available under dual licenses::h]hOR should be used if the file is dual licensed and only one license is to be selected. For example, some dtsi files are available under dual licenses:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hjSubj)}(h3// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clauseh]h3// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjSubh)}(hIExamples from the kernel for license expressions in dual licensed files::h]hHExamples from the kernel for license expressions in dual licensed files:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjSubj)}(hXD// SPDX-License-Identifier: GPL-2.0 OR MIT // SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause // SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 // SPDX-License-Identifier: GPL-2.0 OR MPL-1.1 // SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT // SPDX-License-Identifier: GPL-1.0+ OR BSD-3-Clause OR OpenSSLh]hXD// SPDX-License-Identifier: GPL-2.0 OR MIT // SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause // SPDX-License-Identifier: GPL-2.0 OR Apache-2.0 // SPDX-License-Identifier: GPL-2.0 OR MPL-1.1 // SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT // SPDX-License-Identifier: GPL-1.0+ OR BSD-3-Clause OR OpenSSL}hj(sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjSubh)}(hXAND should be used if the file has multiple licenses whose terms all apply to use the file. For example, if code is inherited from another project and permission has been given to put it in the kernel, but the original license terms need to remain in effect::h]hXAND should be used if the file has multiple licenses whose terms all apply to use the file. For example, if code is inherited from another project and permission has been given to put it in the kernel, but the original license terms need to remain in effect:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjSubj)}(hE// SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) AND MITh]hE// SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) AND MIT}hjDsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjSubh)}(hQAnother other example where both sets of license terms need to be adhered to is::h]hPAnother other example where both sets of license terms need to be adhered to is:}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjSubj)}(h2// SPDX-License-Identifier: GPL-1.0+ AND LGPL-2.1+h]h2// SPDX-License-Identifier: GPL-1.0+ AND LGPL-2.1+}hj`sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjSubeh}(h]h ]h"]h$]h&]uh1jhjPhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjj=Kuh1jhjhhhhhK]ubeh}(h]license-identifier-syntaxah ]h"]license identifier syntaxah$]h&]uh1hhhhhhhhK; referencedKubh)}(hhh](h)}(hLicense identifiersh]hLicense identifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hkThe licenses currently used, as well as the licenses for code added to the kernel, can be broken down into:h]hkThe licenses currently used, as well as the licenses for code added to the kernel, can be broken down into:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh]j)}(hXK _`Preferred licenses`: Whenever possible these licenses should be used as they are known to be fully compatible and widely used. These licenses are available from the directory:: LICENSES/preferred/ in the kernel source tree. The files in this directory contain the full license text and `Metatags`_. The file names are identical to the SPDX license identifier which shall be used for the license in source files. Examples:: LICENSES/preferred/GPL-2.0 Contains the GPL version 2 license text and the required metatags:: LICENSES/preferred/MIT Contains the MIT license text and the required metatags _`Metatags`: The following meta tags must be available in a license file: - Valid-License-Identifier: One or more lines which declare which License Identifiers are valid inside the project to reference this particular license text. Usually this is a single valid identifier, but e.g. for licenses with the 'or later' options two identifiers are valid. - SPDX-URL: The URL of the SPDX page which contains additional information related to the license. - Usage-Guidance: Freeform text for usage advice. The text must include correct examples for the SPDX license identifiers as they should be put into source files according to the `License identifier syntax`_ guidelines. - License-Text: All text after this tag is treated as the original license text File format examples:: Valid-License-Identifier: GPL-2.0 Valid-License-Identifier: GPL-2.0+ SPDX-URL: https://spdx.org/licenses/GPL-2.0.html Usage-Guide: To use this license in source code, put one of the following SPDX tag/value pairs into a comment according to the placement guidelines in the licensing rules documentation. For 'GNU General Public License (GPL) version 2 only' use: SPDX-License-Identifier: GPL-2.0 For 'GNU General Public License (GPL) version 2 or any later version' use: SPDX-License-Identifier: GPL-2.0+ License-Text: Full license text :: SPDX-License-Identifier: MIT SPDX-URL: https://spdx.org/licenses/MIT.html Usage-Guide: To use this license in source code, put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation. SPDX-License-Identifier: MIT License-Text: Full license text h](h)}(h_`Preferred licenses`:h](h)}(h_`Preferred licenses`h]hPreferred licenses}(hjhhhNhNubah}(h]preferred-licensesah ]h"]preferred licensesah$]h&]uh1hhjjKubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hWhenever possible these licenses should be used as they are known to be fully compatible and widely used. These licenses are available from the directory::h]hWhenever possible these licenses should be used as they are known to be fully compatible and widely used. These licenses are available from the directory:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hLICENSES/preferred/h]hLICENSES/preferred/}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubh)}(hin the kernel source tree.h]hin the kernel source tree.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hThe files in this directory contain the full license text and `Metatags`_. The file names are identical to the SPDX license identifier which shall be used for the license in source files.h](h>The files in this directory contain the full license text and }(hjhhhNhNubjF)}(h `Metatags`_h]hMetatags}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameMetatagshmetatagsuh1jEhjjuKubhs. The file names are identical to the SPDX license identifier which shall be used for the license in source files.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h Examples::h]h Examples:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hLICENSES/preferred/GPL-2.0h]hLICENSES/preferred/GPL-2.0}hj"sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubh)}(hCContains the GPL version 2 license text and the required metatags::h]hBContains the GPL version 2 license text and the required metatags:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hLICENSES/preferred/MITh]hLICENSES/preferred/MIT}hj>sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubh)}(h7Contains the MIT license text and the required metatagsh]h7Contains the MIT license text and the required metatags}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h _`Metatags`:h](h)}(h _`Metatags`h]hMetatags}(hj^hhhNhNubah}(h]j ah ]h"]metatagsah$]h&]uh1hhjZjKubh:}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hX,Valid-License-Identifier: GPL-2.0 Valid-License-Identifier: GPL-2.0+ SPDX-URL: https://spdx.org/licenses/GPL-2.0.html Usage-Guide: To use this license in source code, put one of the following SPDX tag/value pairs into a comment according to the placement guidelines in the licensing rules documentation. For 'GNU General Public License (GPL) version 2 only' use: SPDX-License-Identifier: GPL-2.0 For 'GNU General Public License (GPL) version 2 or any later version' use: SPDX-License-Identifier: GPL-2.0+ License-Text: Full license texth]hX,Valid-License-Identifier: GPL-2.0 Valid-License-Identifier: GPL-2.0+ SPDX-URL: https://spdx.org/licenses/GPL-2.0.html Usage-Guide: To use this license in source code, put one of the following SPDX tag/value pairs into a comment according to the placement guidelines in the licensing rules documentation. For 'GNU General Public License (GPL) version 2 only' use: SPDX-License-Identifier: GPL-2.0 For 'GNU General Public License (GPL) version 2 or any later version' use: SPDX-License-Identifier: GPL-2.0+ License-Text: Full license text}hjLsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubj)}(hXDSPDX-License-Identifier: MIT SPDX-URL: https://spdx.org/licenses/MIT.html Usage-Guide: To use this license in source code, put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation. SPDX-License-Identifier: MIT License-Text: Full license texth]hXDSPDX-License-Identifier: MIT SPDX-URL: https://spdx.org/licenses/MIT.html Usage-Guide: To use this license in source code, put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation. SPDX-License-Identifier: MIT License-Text: Full license text}hjZsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjuh1jhjhhhhhKubj)}(hhh]j)}(hhh]h}(h]h ]h"]h$]h&]uh1hhjthhhhhKjKubah}(h]h ]h"]h$]h&]uh1jhjhhhhhKubj)}(hhh]j)}(hXDeprecated licenses: These licenses should only be used for existing code or for importing code from a different project. These licenses are available from the directory:: LICENSES/deprecated/ in the kernel source tree. The files in this directory contain the full license text and `Metatags`_. The file names are identical to the SPDX license identifier which shall be used for the license in source files. Examples:: LICENSES/deprecated/ISC Contains the Internet Systems Consortium license text and the required metatags:: LICENSES/deprecated/GPL-1.0 Contains the GPL version 1 license text and the required metatags. Metatags: The metatag requirements for 'other' licenses are identical to the requirements of the `Preferred licenses`_. File format example:: Valid-License-Identifier: ISC SPDX-URL: https://spdx.org/licenses/ISC.html Usage-Guide: Usage of this license in the kernel for new code is discouraged and it should solely be used for importing code from an already existing project. To use this license in source code, put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation. SPDX-License-Identifier: ISC License-Text: Full license text h](h)}(hDeprecated licenses:h]hDeprecated licenses:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hThese licenses should only be used for existing code or for importing code from a different project. These licenses are available from the directory::h]hThese licenses should only be used for existing code or for importing code from a different project. These licenses are available from the directory:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hLICENSES/deprecated/h]hLICENSES/deprecated/}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubh)}(hin the kernel source tree.h]hin the kernel source tree.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hThe files in this directory contain the full license text and `Metatags`_. The file names are identical to the SPDX license identifier which shall be used for the license in source files.h](h>The files in this directory contain the full license text and }(hjhhhNhNubjF)}(h `Metatags`_h]hMetatags}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameMetatagshj uh1jEhjjuKubhs. The file names are identical to the SPDX license identifier which shall be used for the license in source files.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h Examples::h]h Examples:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hLICENSES/deprecated/ISCh]hLICENSES/deprecated/ISC}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubh)}(hQContains the Internet Systems Consortium license text and the required metatags::h]hPContains the Internet Systems Consortium license text and the required metatags:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hLICENSES/deprecated/GPL-1.0h]hLICENSES/deprecated/GPL-1.0}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjubh)}(hBContains the GPL version 1 license text and the required metatags.h]hBContains the GPL version 1 license text and the required metatags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h Metatags:h]h Metatags:}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hmThe metatag requirements for 'other' licenses are identical to the requirements of the `Preferred licenses`_.h](h[The metatag requirements for ‘other’ licenses are identical to the requirements of the }(hj;hhhNhNubjF)}(h`Preferred licenses`_h]hPreferred licenses}(hjChhhNhNubah}(h]h ]h"]h$]h&]namePreferred licenseshjuh1jEhj;juKubh.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hFile format example::h]hFile format example:}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubj)}(hXValid-License-Identifier: ISC SPDX-URL: https://spdx.org/licenses/ISC.html Usage-Guide: Usage of this license in the kernel for new code is discouraged and it should solely be used for importing code from an already existing project. To use this license in source code, put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation. SPDX-License-Identifier: ISC License-Text: Full license texth]hXValid-License-Identifier: ISC SPDX-URL: https://spdx.org/licenses/ISC.html Usage-Guide: Usage of this license in the kernel for new code is discouraged and it should solely be used for importing code from an already existing project. To use this license in source code, put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation. SPDX-License-Identifier: ISC License-Text: Full license text}hjksbah}(h]h ]h"]h$]h&]hhuh1jhhhM hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjj=Kuh1jhjhhhhhKubj)}(hhh]j)}(hhh]h}(h]h ]h"]h$]h&]uh1hhjhhhhhKjKubah}(h]h ]h"]h$]h&]uh1jhjhhhhhMubj)}(hhh]j)}(hXDual Licensing Only These licenses should only be used to dual license code with another license in addition to a preferred license. These licenses are available from the directory:: LICENSES/dual/ in the kernel source tree. The files in this directory contain the full license text and `Metatags`_. The file names are identical to the SPDX license identifier which shall be used for the license in source files. Examples:: LICENSES/dual/MPL-1.1 Contains the Mozilla Public License version 1.1 license text and the required metatags:: LICENSES/dual/Apache-2.0 Contains the Apache License version 2.0 license text and the required metatags. Metatags: The metatag requirements for 'other' licenses are identical to the requirements of the `Preferred licenses`_. File format example:: Valid-License-Identifier: MPL-1.1 SPDX-URL: https://spdx.org/licenses/MPL-1.1.html Usage-Guide: Do NOT use. The MPL-1.1 is not GPL2 compatible. It may only be used for dual-licensed files where the other license is GPL2 compatible. If you end up using this it MUST be used together with a GPL2 compatible license using "OR". To use the Mozilla Public License version 1.1 put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation: SPDX-License-Identifier: MPL-1.1 License-Text: Full license text h](h)}(hDual Licensing Onlyh]hDual Licensing Only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hThese licenses should only be used to dual license code with another license in addition to a preferred license. These licenses are available from the directory::h]hThese licenses should only be used to dual license code with another license in addition to a preferred license. These licenses are available from the directory:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj)}(hLICENSES/dual/h]hLICENSES/dual/}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM"hjubh)}(hin the kernel source tree.h]hin the kernel source tree.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjubh)}(hThe files in this directory contain the full license text and `Metatags`_. The file names are identical to the SPDX license identifier which shall be used for the license in source files.h](h>The files in this directory contain the full license text and }(hjhhhNhNubjF)}(h `Metatags`_h]hMetatags}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameMetatagshj uh1jEhjjuKubhs. The file names are identical to the SPDX license identifier which shall be used for the license in source files.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM&hjubh)}(h Examples::h]h Examples:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hjubj)}(hLICENSES/dual/MPL-1.1h]hLICENSES/dual/MPL-1.1}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM,hjubh)}(hXContains the Mozilla Public License version 1.1 license text and the required metatags::h]hWContains the Mozilla Public License version 1.1 license text and the required metatags:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hjubj)}(hLICENSES/dual/Apache-2.0h]hLICENSES/dual/Apache-2.0}hj"sbah}(h]h ]h"]h$]h&]hhuh1jhhhM1hjubh)}(hOContains the Apache License version 2.0 license text and the required metatags.h]hOContains the Apache License version 2.0 license text and the required metatags.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM3hjubh)}(h Metatags:h]h Metatags:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hjubh)}(hmThe metatag requirements for 'other' licenses are identical to the requirements of the `Preferred licenses`_.h](h[The metatag requirements for ‘other’ licenses are identical to the requirements of the }(hjLhhhNhNubjF)}(h`Preferred licenses`_h]hPreferred licenses}(hjThhhNhNubah}(h]h ]h"]h$]h&]namePreferred licenseshjuh1jEhjLjuKubh.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM8hjubh)}(hFile format example::h]hFile format example:}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjubj)}(hXDValid-License-Identifier: MPL-1.1 SPDX-URL: https://spdx.org/licenses/MPL-1.1.html Usage-Guide: Do NOT use. The MPL-1.1 is not GPL2 compatible. It may only be used for dual-licensed files where the other license is GPL2 compatible. If you end up using this it MUST be used together with a GPL2 compatible license using "OR". To use the Mozilla Public License version 1.1 put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation: SPDX-License-Identifier: MPL-1.1 License-Text: Full license texth]hXDValid-License-Identifier: MPL-1.1 SPDX-URL: https://spdx.org/licenses/MPL-1.1.html Usage-Guide: Do NOT use. The MPL-1.1 is not GPL2 compatible. It may only be used for dual-licensed files where the other license is GPL2 compatible. If you end up using this it MUST be used together with a GPL2 compatible license using "OR". To use the Mozilla Public License version 1.1 put the following SPDX tag/value pair into a comment according to the placement guidelines in the licensing rules documentation: SPDX-License-Identifier: MPL-1.1 License-Text: Full license text}hj|sbah}(h]h ]h"]h$]h&]hhuh1jhhhM=hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjj=Kuh1jhjhhhhhMubj)}(hhh]j)}(hhh]h}(h]h ]h"]h$]h&]uh1hhjhhhhhKjKubah}(h]h ]h"]h$]h&]uh1jhjhhhhhMKubj)}(hhh]j)}(hX4 _`Exceptions`: Some licenses can be amended with exceptions which grant certain rights which the original license does not. These exceptions are available from the directory:: LICENSES/exceptions/ in the kernel source tree. The files in this directory contain the full exception text and the required `Exception Metatags`_. Examples:: LICENSES/exceptions/Linux-syscall-note Contains the Linux syscall exception as documented in the COPYING file of the Linux kernel, which is used for UAPI header files. e.g. /\* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note \*/:: LICENSES/exceptions/GCC-exception-2.0 Contains the GCC 'linking exception' which allows to link any binary independent of its license against the compiled version of a file marked with this exception. This is required for creating runnable executables from source code which is not compatible with the GPL. _`Exception Metatags`: The following meta tags must be available in an exception file: - SPDX-Exception-Identifier: One exception identifier which can be used with SPDX license identifiers. - SPDX-URL: The URL of the SPDX page which contains additional information related to the exception. - SPDX-Licenses: A comma separated list of SPDX license identifiers for which the exception can be used. - Usage-Guidance: Freeform text for usage advice. The text must be followed by correct examples for the SPDX license identifiers as they should be put into source files according to the `License identifier syntax`_ guidelines. - Exception-Text: All text after this tag is treated as the original exception text File format examples:: SPDX-Exception-Identifier: Linux-syscall-note SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+ Usage-Guidance: This exception is used together with one of the above SPDX-Licenses to mark user-space API (uapi) header files so they can be included into non GPL compliant user-space application code. To use this exception add it with the keyword WITH to one of the identifiers in the SPDX-Licenses tag: SPDX-License-Identifier: WITH Linux-syscall-note Exception-Text: Full exception text :: SPDX-Exception-Identifier: GCC-exception-2.0 SPDX-URL: https://spdx.org/licenses/GCC-exception-2.0.html SPDX-Licenses: GPL-2.0, GPL-2.0+ Usage-Guidance: The "GCC Runtime Library exception 2.0" is used together with one of the above SPDX-Licenses for code imported from the GCC runtime library. To use this exception add it with the keyword WITH to one of the identifiers in the SPDX-Licenses tag: SPDX-License-Identifier: WITH GCC-exception-2.0 Exception-Text: Full exception text h](h)}(h_`Exceptions`:h](h)}(h _`Exceptions`h]h Exceptions}(hjhhhNhNubah}(h]jah ]h"] exceptionsah$]h&]uh1hhjjKubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMMhjubh)}(hSome licenses can be amended with exceptions which grant certain rights which the original license does not. These exceptions are available from the directory::h]hSome licenses can be amended with exceptions which grant certain rights which the original license does not. These exceptions are available from the directory:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubj)}(hLICENSES/exceptions/h]hLICENSES/exceptions/}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMShjubh)}(hin the kernel source tree. The files in this directory contain the full exception text and the required `Exception Metatags`_.h](hiin the kernel source tree. The files in this directory contain the full exception text and the required }(hjhhhNhNubjF)}(h`Exception Metatags`_h]hException Metatags}(hjhhhNhNubah}(h]h ]h"]h$]h&]nameException Metatagshexception-metatagsuh1jEhjjuKubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMUhjubh)}(h Examples::h]h Examples:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjubj)}(h&LICENSES/exceptions/Linux-syscall-noteh]h&LICENSES/exceptions/Linux-syscall-note}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMZhjubh)}(hContains the Linux syscall exception as documented in the COPYING file of the Linux kernel, which is used for UAPI header files. e.g. /\* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note \*/::h]hContains the Linux syscall exception as documented in the COPYING file of the Linux kernel, which is used for UAPI header files. e.g. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */:}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjubj)}(h%LICENSES/exceptions/GCC-exception-2.0h]h%LICENSES/exceptions/GCC-exception-2.0}hj5sbah}(h]h ]h"]h$]h&]hhuh1jhhhM`hjubh)}(hX Contains the GCC 'linking exception' which allows to link any binary independent of its license against the compiled version of a file marked with this exception. This is required for creating runnable executables from source code which is not compatible with the GPL.h]hXContains the GCC ‘linking exception’ which allows to link any binary independent of its license against the compiled version of a file marked with this exception. This is required for creating runnable executables from source code which is not compatible with the GPL.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhjubh)}(h_`Exception Metatags`:h](h)}(h_`Exception Metatags`h]hException Metatags}(hjUhhhNhNubah}(h]jah ]h"]exception metatagsah$]h&]uh1hhjQjKubh:}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMghjubh)}(h?The following meta tags must be available in an exception file:h]h?The following meta tags must be available in an exception file:}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihjubj)}(hhh](j)}(hfSPDX-Exception-Identifier: One exception identifier which can be used with SPDX license identifiers. h](h)}(hSPDX-Exception-Identifier:h]hSPDX-Exception-Identifier:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhjubh)}(hIOne exception identifier which can be used with SPDX license identifiers.h]hIOne exception identifier which can be used with SPDX license identifiers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubj)}(hdSPDX-URL: The URL of the SPDX page which contains additional information related to the exception. h](h)}(h SPDX-URL:h]h SPDX-URL:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphjubh)}(hXThe URL of the SPDX page which contains additional information related to the exception.h]hXThe URL of the SPDX page which contains additional information related to the exception.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMrhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubj)}(hhSPDX-Licenses: A comma separated list of SPDX license identifiers for which the exception can be used. h](h)}(hSPDX-Licenses:h]hSPDX-Licenses:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjubh)}(hWA comma separated list of SPDX license identifiers for which the exception can be used.h]hWA comma separated list of SPDX license identifiers for which the exception can be used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubj)}(hUsage-Guidance: Freeform text for usage advice. The text must be followed by correct examples for the SPDX license identifiers as they should be put into source files according to the `License identifier syntax`_ guidelines. h](h)}(hUsage-Guidance:h]hUsage-Guidance:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMzhjubh)}(hFreeform text for usage advice. The text must be followed by correct examples for the SPDX license identifiers as they should be put into source files according to the `License identifier syntax`_ guidelines.h](hFreeform text for usage advice. The text must be followed by correct examples for the SPDX license identifiers as they should be put into source files according to the }(hj hhhNhNubjF)}(h`License identifier syntax`_h]hLicense identifier syntax}(hj hhhNhNubah}(h]h ]h"]h$]h&]nameLicense identifier syntaxhj|uh1jEhj juKubh guidelines.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM|hjubeh}(h]h ]h"]h$]h&]uh1jhj|ubj)}(hSException-Text: All text after this tag is treated as the original exception text h](h)}(hException-Text:h]hException-Text:}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ ubh)}(hAAll text after this tag is treated as the original exception texth]hAAll text after this tag is treated as the original exception text}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ ubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]j<j=uh1jhhhMkhjubh)}(hFile format examples::h]hFile format examples:}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj)}(hXdSPDX-Exception-Identifier: Linux-syscall-note SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+ Usage-Guidance: This exception is used together with one of the above SPDX-Licenses to mark user-space API (uapi) header files so they can be included into non GPL compliant user-space application code. To use this exception add it with the keyword WITH to one of the identifiers in the SPDX-Licenses tag: SPDX-License-Identifier: WITH Linux-syscall-note Exception-Text: Full exception texth]hXdSPDX-Exception-Identifier: Linux-syscall-note SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+ Usage-Guidance: This exception is used together with one of the above SPDX-Licenses to mark user-space API (uapi) header files so they can be included into non GPL compliant user-space application code. To use this exception add it with the keyword WITH to one of the identifiers in the SPDX-Licenses tag: SPDX-License-Identifier: WITH Linux-syscall-note Exception-Text: Full exception text}hje sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjubj)}(hXSPDX-Exception-Identifier: GCC-exception-2.0 SPDX-URL: https://spdx.org/licenses/GCC-exception-2.0.html SPDX-Licenses: GPL-2.0, GPL-2.0+ Usage-Guidance: The "GCC Runtime Library exception 2.0" is used together with one of the above SPDX-Licenses for code imported from the GCC runtime library. To use this exception add it with the keyword WITH to one of the identifiers in the SPDX-Licenses tag: SPDX-License-Identifier: WITH GCC-exception-2.0 Exception-Text: Full exception texth]hXSPDX-Exception-Identifier: GCC-exception-2.0 SPDX-URL: https://spdx.org/licenses/GCC-exception-2.0.html SPDX-Licenses: GPL-2.0, GPL-2.0+ Usage-Guidance: The "GCC Runtime Library exception 2.0" is used together with one of the above SPDX-Licenses for code imported from the GCC runtime library. To use this exception add it with the keyword WITH to one of the identifiers in the SPDX-Licenses tag: SPDX-License-Identifier: WITH GCC-exception-2.0 Exception-Text: Full exception text}hjs sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjj=Kuh1jhjhhhhhMMubh)}(hXfAll SPDX license identifiers and exceptions must have a corresponding file in the LICENSES subdirectories. This is required to allow tool verification (e.g. checkpatch.pl) and to have the licenses ready to read and extract right from the source, which is recommended by various FOSS organizations, e.g. the `FSFE REUSE initiative `_.h](hX3All SPDX license identifiers and exceptions must have a corresponding file in the LICENSES subdirectories. This is required to allow tool verification (e.g. checkpatch.pl) and to have the licenses ready to read and extract right from the source, which is recommended by various FOSS organizations, e.g. the }(hj hhhNhNubjF)}(h2`FSFE REUSE initiative `_h]hFSFE REUSE initiative}(hj hhhNhNubah}(h]h ]h"]h$]h&]nameFSFE REUSE initiativerefurihttps://reuse.software/uh1jEhj ubh)}(h h]h}(h]fsfe-reuse-initiativeah ]h"]fsfe reuse initiativeah$]h&]refurij uh1hjKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]jtah ]h"]license identifiersah$]h&]uh1hhhhhhhhKjKubh)}(hhh](h)}(h_`MODULE_LICENSE`h]h)}(hj h]hMODULE_LICENSE}(hj hhhNhNubah}(h]module-licenseah ]h"]module_licenseah$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh block_quote)}(hX Loadable kernel modules also require a MODULE_LICENSE() tag. This tag is neither a replacement for proper source code license information (SPDX-License-Identifier) nor in any way relevant for expressing or determining the exact license under which the source code of the module is provided. The sole purpose of this tag is to provide sufficient information whether the module is free software or proprietary for the kernel module loader and for user space tools. The valid license strings for MODULE_LICENSE() are: ============================= ============================================= "GPL" Module is licensed under GPL version 2. This does not express any distinction between GPL-2.0-only or GPL-2.0-or-later. The exact license information can only be determined via the license information in the corresponding source files. "GPL v2" Same as "GPL". It exists for historic reasons. "GPL and additional rights" Historical variant of expressing that the module source is dual licensed under a GPL v2 variant and MIT license. Please do not use in new code. "Dual MIT/GPL" The correct way of expressing that the module is dual licensed under a GPL v2 variant or MIT license choice. "Dual BSD/GPL" The module is dual licensed under a GPL v2 variant or BSD license choice. The exact variant of the BSD license can only be determined via the license information in the corresponding source files. "Dual MPL/GPL" The module is dual licensed under a GPL v2 variant or Mozilla Public License (MPL) choice. The exact variant of the MPL license can only be determined via the license information in the corresponding source files. "Proprietary" The module is under a proprietary license. "Proprietary" is to be understood only as "The license is not compatible to GPLv2". This string is solely for non-GPL2 compatible third party modules and cannot be used for modules which have their source code in the kernel tree. Modules tagged that way are tainting the kernel with the 'P' flag when loaded and the kernel module loader refuses to link such modules against symbols which are exported with EXPORT_SYMBOL_GPL(). ============================= ============================================= h](h)}(hX"Loadable kernel modules also require a MODULE_LICENSE() tag. This tag is neither a replacement for proper source code license information (SPDX-License-Identifier) nor in any way relevant for expressing or determining the exact license under which the source code of the module is provided.h]hX"Loadable kernel modules also require a MODULE_LICENSE() tag. This tag is neither a replacement for proper source code license information (SPDX-License-Identifier) nor in any way relevant for expressing or determining the exact license under which the source code of the module is provided.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(hThe sole purpose of this tag is to provide sufficient information whether the module is free software or proprietary for the kernel module loader and for user space tools.h]hThe sole purpose of this tag is to provide sufficient information whether the module is free software or proprietary for the kernel module loader and for user space tools.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(h3The valid license strings for MODULE_LICENSE() are:h]h3The valid license strings for MODULE_LICENSE() are:)7}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj )}(hX ============================= ============================================= "GPL" Module is licensed under GPL version 2. This does not express any distinction between GPL-2.0-only or GPL-2.0-or-later. The exact license information can only be determined via the license information in the corresponding source files. "GPL v2" Same as "GPL". It exists for historic reasons. "GPL and additional rights" Historical variant of expressing that the module source is dual licensed under a GPL v2 variant and MIT license. Please do not use in new code. "Dual MIT/GPL" The correct way of expressing that the module is dual licensed under a GPL v2 variant or MIT license choice. "Dual BSD/GPL" The module is dual licensed under a GPL v2 variant or BSD license choice. The exact variant of the BSD license can only be determined via the license information in the corresponding source files. "Dual MPL/GPL" The module is dual licensed under a GPL v2 variant or Mozilla Public License (MPL) choice. The exact variant of the MPL license can only be determined via the license information in the corresponding source files. "Proprietary" The module is under a proprietary license. "Proprietary" is to be understood only as "The license is not compatible to GPLv2". This string is solely for non-GPL2 compatible third party modules and cannot be used for modules which have their source code in the kernel tree. Modules tagged that way are tainting the kernel with the 'P' flag when loaded and the kernel module loader refuses to link such modules against symbols which are exported with EXPORT_SYMBOL_GPL(). ============================= ============================================= h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK-uh1j hj ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h"GPL"h]h “GPL”}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjA ubah}(h]h ]h"]h$]h&]uh1j? hj< ubj@ )}(hhh]h)}(hModule is licensed under GPL version 2. This does not express any distinction between GPL-2.0-only or GPL-2.0-or-later. The exact license information can only be determined via the license information in the corresponding source files.h]hModule is licensed under GPL version 2. This does not express any distinction between GPL-2.0-only or GPL-2.0-or-later. The exact license information can only be determined via the license information in the corresponding source files.}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjX ubah}(h]h ]h"]h$]h&]uh1j? hj< ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubj; )}(hhh](j@ )}(hhh]h)}(h"GPL v2"h]h “GPL v2”}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjx ubah}(h]h ]h"]h$]h&]uh1j? hju ubj@ )}(hhh]h)}(h.Same as "GPL". It exists for historic reasons.h]h2Same as “GPL”. It exists for historic reasons.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hju ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubj; )}(hhh](j@ )}(hhh]h)}(h"GPL and additional rights"h]h“GPL and additional rights”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubj@ )}(hhh]h)}(hHistorical variant of expressing that the module source is dual licensed under a GPL v2 variant and MIT license. Please do not use in new code.h]hHistorical variant of expressing that the module source is dual licensed under a GPL v2 variant and MIT license. Please do not use in new code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubj; )}(hhh](j@ )}(hhh]h)}(h"Dual MIT/GPL"h]h“Dual MIT/GPL”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubj@ )}(hhh]h)}(hlThe correct way of expressing that the module is dual licensed under a GPL v2 variant or MIT license choice.h]hlThe correct way of expressing that the module is dual licensed under a GPL v2 variant or MIT license choice.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubj; )}(hhh](j@ )}(hhh]h)}(h"Dual BSD/GPL"h]h“Dual BSD/GPL”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubj@ )}(hhh]h)}(hThe module is dual licensed under a GPL v2 variant or BSD license choice. The exact variant of the BSD license can only be determined via the license information in the corresponding source files.h]hThe module is dual licensed under a GPL v2 variant or BSD license choice. The exact variant of the BSD license can only be determined via the license information in the corresponding source files.}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4 ubah}(h]h ]h"]h$]h&]uh1j? hj ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubj; )}(hhh](j@ )}(hhh]h)}(h"Dual MPL/GPL"h]h“Dual MPL/GPL”}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjT ubah}(h]h ]h"]h$]h&]uh1j? hjQ ubj@ )}(hhh]h)}(hThe module is dual licensed under a GPL v2 variant or Mozilla Public License (MPL) choice. The exact variant of the MPL license can only be determined via the license information in the corresponding source files.h]hThe module is dual licensed under a GPL v2 variant or Mozilla Public License (MPL) choice. The exact variant of the MPL license can only be determined via the license information in the corresponding source files.}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjk ubah}(h]h ]h"]h$]h&]uh1j? hjQ ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubj; )}(hhh](j@ )}(hhh]h)}(h "Proprietary"h]h“Proprietary”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubj@ )}(hhh]h)}(hXThe module is under a proprietary license. "Proprietary" is to be understood only as "The license is not compatible to GPLv2". This string is solely for non-GPL2 compatible third party modules and cannot be used for modules which have their source code in the kernel tree. Modules tagged that way are tainting the kernel with the 'P' flag when loaded and the kernel module loader refuses to link such modules against symbols which are exported with EXPORT_SYMBOL_GPL().h]hXThe module is under a proprietary license. “Proprietary” is to be understood only as “The license is not compatible to GPLv2”. This string is solely for non-GPL2 compatible third party modules and cannot be used for modules which have their source code in the kernel tree. Modules tagged that way are tainting the kernel with the ‘P’ flag when loaded and the kernel module loader refuses to link such modules against symbols which are exported with EXPORT_SYMBOL_GPL().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j? hj ubeh}(h]h ]h"]h$]h&]uh1j: hj7 ubeh}(h]h ]h"]h$]h&]uh1j5 hj ubeh}(h]h ]h"]h$]h&]colsKuh1j hj ubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1j hhhMhj ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubeh}(h]id1ah ]h"]h$]module_licenseah&]uh1hhhhhhhhMjKubeh}(h](linux-kernel-licensing-rulesheh ]h"](linux kernel licensing ruleskernel_licensingeh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}j hsexpect_referenced_by_id}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksj? footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}(license identifiers](jdje exceptions]jametatags](jjjelicense identifier syntax](jj epreferred licenses](jCjTeexception metatags]jaurefids}h]hasnameids}(j hj j jj|j jtjjjjj jjjajj j j j u nametypes}(j j jj jjjjjaj j uh}(hhj hj|jjtjjjj j^jjjjUj j j j j j u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j# KsRparse_messages](hsystem_message)}(hhh]h)}(h:Enumerated list start value not ordinal-1: "2" (ordinal 2)h]h>Enumerated list start value not ordinal-1: “2” (ordinal 2)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j hjhhhhhKGubj )}(hhh]h)}(h:Enumerated list start value not ordinal-1: "3" (ordinal 3)h]h>Enumerated list start value not ordinal-1: “3” (ordinal 3)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j hjhhhhhK]ubj )}(hhh]h)}(h:Enumerated list start value not ordinal-1: "2" (ordinal 2)h]h>Enumerated list start value not ordinal-1: “2” (ordinal 2)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j hjhhhhhKubj )}(hhh]h)}(h:Enumerated list start value not ordinal-1: "3" (ordinal 3)h]h>Enumerated list start value not ordinal-1: “3” (ordinal 3)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j hjhhhhhMubj )}(hhh]h)}(h:Enumerated list start value not ordinal-1: "4" (ordinal 4)h]h>Enumerated list start value not ordinal-1: “4” (ordinal 4)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j hjhhhhhMMubj )}(hhh]h)}(h1Duplicate implicit target name: "module_license".h]h5Duplicate implicit target name: “module_license”.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]j alevelKtypej sourcehlineMuh1j hj hhhhhMubetransform_messages](j )}(hhh]h)}(hhh]h6Hyperlink target "kernel-licensing" is not referenced.}hj. sbah}(h]h ]h"]h$]h&]uh1hhj+ ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j ubj )}(hhh]h)}(hhh]h4Hyperlink target "module_license" is not referenced.}hjH sbah}(h]h ]h"]h$]h&]uh1hhjE ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineMuh1j ube transformerN include_log] decorationNhhub.