Skip to content

Commit 87da63f

Browse files
Add false positive and other misc rules and updates
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent f9863e6 commit 87da63f

18 files changed

+126
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
The SPDX license identifier in kernel files shall be added at the first
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
The SPDX license identifier is added in form of a comment.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
(SPDX-License-Identifier) nor in any way relevant for expressing or
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen at drivers/block/floppy.c
4+
---
5+
6+
* modeled after the freeware MS-DOS program fdformat/88 V1.8 by
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen at kernel/bpf/syscall.c
4+
---
5+
6+
sizeof(license)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
SPDX-License-Identifier: <SPDX License Expression>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
SPDX-License-Identifier: <SPDX-License>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
Aside from that, individual files can be provided under a dual license,
7+
e.g. one of the compatible GPL variants and alternatively under a
8+
permissive license like BSD, MIT etc.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
4+
---
5+
6+
Dual Licensing Only
7+
8+
These licenses should only be used to dual license code with another
9+
license in addition to a preferred license. These licenses are available
10+
from the directory::
11+
12+
LICENSES/dual/
13+
14+
in the kernel source tree.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
license_expression: linux-syscall-exception-gpl
3-
is_license_notice: yes
4-
notes: seen in linux kernel /LICENSES/exceptions/Linux-syscall-note
2+
is_false_positive: yes
3+
notes: seen in kernel /Documentation/process/license-rules.rst
54
---
65

76
SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+, GPL-2.0-only, GPL-2.0-or-later
@@ -11,4 +10,4 @@ Usage-Guide:
1110
into non GPL compliant user space application code.
1211
To use this exception add it with the keyword WITH to one of the
1312
identifiers in the SPDX-Licenses tag:
14-
{{SPDX-License-Identifier: <SPDX-License> WITH Linux-syscall-note}}
13+
SPDX-License-Identifier: <SPDX-License> WITH Linux-syscall-note
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: gpl-2.0-plus
3+
is_license_reference: yes
4+
minimum_coverage: 100
5+
---
6+
7+
MODULE_LICENSE("GPL");
8+
// Actually dual-licensed, but it doesn't matter for
9+
// the sake of this tag. It's Free Software.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: gpl-2.0-plus OR bsd-new
3+
is_license_tag: yes
4+
relevance: 99
5+
minimum_coverage: 100
6+
notes: seen at linux/include/dt-bindings/reset/amlogic,meson-axg-reset.h
7+
---
8+
9+
* SPDX-License-Identifier: (GPL-2.0+ OR BSD)

src/licensedcode/data/rules/gpl-2.0-plus_with_mif-exception_jjfs2_2.RULE

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ license_expression: gpl-2.0-plus WITH mif-exception
33
is_license_notice: yes
44
relevance: 99
55
minimum_coverage: 100
6-
referenced_filenames:
7-
- LICENCE
86
notes: seen in U-Boot and the kernel. The LICENCE file is a clear gpl + exception notice
97
---
108

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
license_expression: gpl-2.0 AND gpl-1.0-plus AND gpl-2.0-plus AND lgpl-2.0 AND lgpl-2.0-plus
3+
AND lgpl-2.1 AND lgpl-2.1-plus
4+
is_license_notice: yes
5+
minimum_coverage: 90
6+
---
7+
8+
The license described in the COPYING file applies to the kernel source
9+
as a whole, though individual source files can have a different license
10+
which is required to be compatible with the GPL-2.0::
11+
12+
GPL-1.0+ : GNU General Public License v1.0 or later
13+
GPL-2.0+ : GNU General Public License v2.0 or later
14+
LGPL-2.0 : GNU Library General Public License v2 only
15+
LGPL-2.0+ : GNU Library General Public License v2 or later
16+
LGPL-2.1 : GNU Lesser General Public License v2.1 only
17+
LGPL-2.1+ : GNU Lesser General Public License v2.1 or later
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
license_expression: gpl-2.0 WITH linux-syscall-exception-gpl
3+
is_license_notice: yes
4+
notes: seen in kernel /Documentation/process/license-rules.rst
5+
---
6+
7+
The Linux Kernel is provided under the terms of the {{GNU General Public
8+
License version 2 only}} (GPL-2.0), as provided in LICENSES/preferred/GPL-2.0,
9+
with an explicit syscall exception described in
10+
{{LICENSES/exceptions/Linux-syscall-note}}, as described in the COPYING file.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
license_expression: unknown-license-reference
3+
is_license_intro: yes
4+
---
5+
6+
* Some parts copyright and used with permission.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
license_expression: unknown-license-reference
3+
is_license_intro: yes
4+
---
5+
6+
including portions of which come from the
7+
Developer's Reference Manual and used with permission

src/licensedcode/data/rules/proprietary-license_272.RULE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
license_expression: proprietary-license
3-
is_license_notice: yes
3+
is_license_clue: yes
44
relevance: 100
55
---
66

0 commit comments

Comments
 (0)