]> granicus.if.org Git - ipset/commitdiff
License cleanup: add SPDX license identifier to uapi header files with no license
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2018 19:01:58 +0000 (21:01 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 22 Oct 2018 19:01:58 +0000 (21:01 +0200)
Many user space API headers are missing licensing information, which
makes it hard for compliance tools to determine the correct license.

By default are files without license information under the default
license of the kernel, which is GPLV2.  Marking them GPLV2 would exclude
them from being included in non GPLV2 code, which is obviously not
intended. The user space API headers fall under the syscall exception
which is in the kernels COPYING file:

   NOTE! This copyright does *not* cover user programs that use kernel
   services by normal system calls - this is merely considered normal use
   of the kernel, and does *not* fall under the heading of "derived work".

otherwise syscall usage would not be possible.

Update the files which contain no license information with an SPDX
license identifier.  The chosen identifier is 'GPL-2.0 WITH
Linux-syscall-note' which is the officially assigned identifier for the
Linux syscall exception.  SPDX license identifiers are a legally binding
shorthand, which can be used instead of the full boiler plate text.

This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.  See the previous patch in this series for the
methodology of how this patch was researched.

Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/include/uapi/linux/netfilter/ipset/ip_set_bitmap.h
kernel/include/uapi/linux/netfilter/ipset/ip_set_hash.h
kernel/include/uapi/linux/netfilter/ipset/ip_set_list.h
kernel/include/uapi/linux/netfilter/xt_set.h

index fd5024d262697b1d10b75868d4da146f8cd615ee..c6b146db96938ed7752839e9c0eca378b912170f 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 #ifndef _UAPI__IP_SET_BITMAP_H
 #define _UAPI__IP_SET_BITMAP_H
 
index 82deeb883ac480656b8c0c4310a738847c177f7f..880749ace7983eaa0f68cef0ef9aaedd5614f308 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 #ifndef _UAPI__IP_SET_HASH_H
 #define _UAPI__IP_SET_HASH_H
 
index 84d4303682666f04086f675f6e02da72632854f7..e6d7feb522cdbe6eb8565ec55b8d381545d2d673 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 #ifndef _UAPI__IP_SET_LIST_H
 #define _UAPI__IP_SET_LIST_H
 
index d4e02348384c6386163535ff5f1dffdf32ab257d..8c1ca66c8a0607bf49fd8e08f95a71e054ea7619 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 #ifndef _XT_SET_H
 #define _XT_SET_H