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

Configure Feed

Select the types of activity you want to include in your feed.

net: Add SPDX ids to some source files

Add SPDX-License-Identifier lines to several source
files under the network sub-directory. Work on files
in the core, dns_resolver, ipv4, ipv6 and
netfilter sub-dirs. Remove boilerplate
and license reference text to avoid ambiguity.

Rusty Russell has expressed that his contributions
were intended to be GPL-2.0-or-later.

Signed-off-by: Tim Bird <tim.bird@sony.com>
Link: https://patch.msgid.link/20260305004724.87469-1-tim.bird@sony.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Tim Bird and committed by
Jakub Kicinski
2ed4b46b 86020d7d

+27 -57
+1
net/core/fib_notifier.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/rtnetlink.h> 2 3 #include <linux/notifier.h> 3 4 #include <linux/rcupdate.h>
+1 -2
net/core/sock_diag.c
··· 1 - /* License: GPL */ 2 - 1 + // SPDX-License-Identifier: GPL-2.0 3 2 #include <linux/filter.h> 4 3 #include <linux/mutex.h> 5 4 #include <linux/socket.h>
+1 -13
net/dns_resolver/dns_key.c
··· 1 + // SPDX-License-Identifier: LGPL-2.1-or-later 1 2 /* Key type used to cache DNS lookups made by the kernel 2 3 * 3 4 * See Documentation/networking/dns_resolver.rst ··· 8 7 * Steve French (sfrench@us.ibm.com) 9 8 * Wang Lei (wang840925@gmail.com) 10 9 * David Howells (dhowells@redhat.com) 11 - * 12 - * This library is free software; you can redistribute it and/or modify 13 - * it under the terms of the GNU Lesser General Public License as published 14 - * by the Free Software Foundation; either version 2.1 of the License, or 15 - * (at your option) any later version. 16 - * 17 - * This library is distributed in the hope that it will be useful, 18 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 20 - * the GNU Lesser General Public License for more details. 21 - * 22 - * You should have received a copy of the GNU Lesser General Public License 23 - * along with this library; if not, see <http://www.gnu.org/licenses/>. 24 10 */ 25 11 #include <linux/module.h> 26 12 #include <linux/moduleparam.h>
+1 -13
net/dns_resolver/dns_query.c
··· 1 + // SPDX-License-Identifier: LGPL-2.1-or-later 1 2 /* Upcall routine, designed to work as a key type and working through 2 3 * /sbin/request-key to contact userspace when handling DNS queries. 3 4 * ··· 21 20 * For example to use this module to query AFSDB RR: 22 21 * 23 22 * create dns_resolver afsdb:* * /sbin/dns.afsdb %k 24 - * 25 - * This library is free software; you can redistribute it and/or modify 26 - * it under the terms of the GNU Lesser General Public License as published 27 - * by the Free Software Foundation; either version 2.1 of the License, or 28 - * (at your option) any later version. 29 - * 30 - * This library is distributed in the hope that it will be useful, 31 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 32 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 33 - * the GNU Lesser General Public License for more details. 34 - * 35 - * You should have received a copy of the GNU Lesser General Public License 36 - * along with this library; if not, see <http://www.gnu.org/licenses/>. 37 23 */ 38 24 39 25 #include <linux/module.h>
+1 -13
net/dns_resolver/internal.h
··· 1 + /* SPDX-License-Identifier: LGPL-2.1-or-later */ 1 2 /* 2 3 * Copyright (c) 2010 Wang Lei 3 4 * Author(s): Wang Lei (wang840925@gmail.com). All Rights Reserved. 4 5 * 5 6 * Internal DNS Rsolver stuff 6 - * 7 - * This library is free software; you can redistribute it and/or modify 8 - * it under the terms of the GNU Lesser General Public License as published 9 - * by the Free Software Foundation; either version 2.1 of the License, or 10 - * (at your option) any later version. 11 - * 12 - * This library is distributed in the hope that it will be useful, 13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 15 - * the GNU Lesser General Public License for more details. 16 - * 17 - * You should have received a copy of the GNU Lesser General Public License 18 - * along with this library; if not, see <http://www.gnu.org/licenses/>. 19 7 */ 20 8 21 9 #include <linux/compiler.h>
+1 -2
net/ipv4/inetpeer.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * INETPEER - A storage for permanent information about peers 3 - * 4 - * This source is covered by the GNU GPL, the same as all kernel sources. 5 4 * 6 5 * Authors: Andrey V. Savochkin <saw@msu.ru> 7 6 */
+1
net/ipv4/ipmr_base.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* Linux multicast routing support 2 3 * Common logic shared by IPv4 [ipmr] and IPv6 [ip6mr] implementation 3 4 */
+2 -1
net/ipv4/netfilter.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * IPv4 specific functions of netfilter core 3 4 * 4 - * Rusty Russell (C) 2000 -- This code is GPL. 5 + * Rusty Russell (C) 2000 5 6 * Patrick McHardy (C) 2006-2012 6 7 */ 7 8 #include <linux/kernel.h>
+1
net/ipv4/tcp_bbr.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* Bottleneck Bandwidth and RTT (BBR) congestion control 2 3 * 3 4 * BBR congestion control computes the sending rate based on the delivery
+1
net/ipv4/tcp_dctcp.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef _TCP_DCTCP_H 2 3 #define _TCP_DCTCP_H 3 4
+1
net/ipv4/tcp_plb.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* Protective Load Balancing (PLB) 2 3 * 3 4 * PLB was designed to reduce link load imbalance across datacenter
+1
net/ipv6/fib6_notifier.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/notifier.h> 2 3 #include <linux/socket.h> 3 4 #include <linux/kernel.h>
+1
net/ipv6/ila/ila_common.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/errno.h> 2 3 #include <linux/ip.h> 3 4 #include <linux/kernel.h>
+2 -1
net/ipv6/netfilter.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * IPv6 specific functions of netfilter core 3 4 * 4 - * Rusty Russell (C) 2000 -- This code is GPL. 5 + * Rusty Russell (C) 2000 5 6 * Patrick McHardy (C) 2006-2012 6 7 */ 7 8 #include <linux/kernel.h>
+1 -2
net/netfilter/core.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* netfilter.c: look after the filters for various protocols. 2 3 * Heavily influenced by the old firewall.c by David Bonn and Alan Cox. 3 4 * 4 5 * Thanks to Rob `CmdrTaco' Malda for not influencing this code in any 5 6 * way. 6 - * 7 - * This code is GPL. 8 7 */ 9 8 #include <linux/kernel.h> 10 9 #include <linux/netfilter.h>
+1 -3
net/netfilter/nf_conntrack_netlink.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* Connection tracking via netlink socket. Allows for user space 2 3 * protocol helpers and general trouble making from userspace. 3 4 * ··· 11 10 * generally made possible by Network Robots, Inc. (www.networkrobots.com) 12 11 * 13 12 * Further development of this code funded by Astaro AG (http://www.astaro.com) 14 - * 15 - * This software may be used and distributed according to the terms 16 - * of the GNU General Public License, incorporated herein by reference. 17 13 */ 18 14 19 15 #include <linux/init.h>
+1
net/netfilter/nf_flow_table_offload.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/kernel.h> 2 3 #include <linux/init.h> 3 4 #include <linux/module.h>
+1
net/netfilter/nf_queue.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * Rusty Russell (C)2000 -- This code is GPL. 3 4 * Patrick McHardy (c) 2006-2012
+1 -3
net/netfilter/nfnetlink.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* Netfilter messages via netlink socket. Allows for user space 2 3 * protocol helpers and general trouble making from userspace. 3 4 * ··· 10 9 * generally made possible by Network Robots, Inc. (www.networkrobots.com) 11 10 * 12 11 * Further development of this code funded by Astaro AG (http://www.astaro.com) 13 - * 14 - * This software may be used and distributed according to the terms 15 - * of the GNU General Public License, incorporated herein by reference. 16 12 */ 17 13 18 14 #include <linux/module.h>
+1
net/netfilter/nft_chain_filter.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/init.h> 2 3 #include <linux/kernel.h> 3 4 #include <linux/netdevice.h>
+2 -1
net/netfilter/xt_connbytes.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* Kernel module to match connection tracking byte counter. 2 - * GPL (C) 2002 Martin Devera (devik@cdi.cz). 3 + * (C) 2002 Martin Devera (devik@cdi.cz). 3 4 */ 4 5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 5 6 #include <linux/module.h>
+2 -1
net/netfilter/xt_connlimit.c
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * netfilter module to limit the number of parallel tcp 3 4 * connections per IP address. ··· 10 9 * based on ... 11 10 * 12 11 * Kernel module to match connection tracking information. 13 - * GPL (C) 1999 Rusty Russell (rusty@rustcorp.com.au). 12 + * (C) 1999 Rusty Russell (rusty@rustcorp.com.au). 14 13 */ 15 14 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 16 15
+1 -2
net/netfilter/xt_time.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * xt_time 3 4 * Copyright © CC Computer Consultants GmbH, 2007 ··· 7 6 * This is a module which is used for time matching 8 7 * It is using some modified code from dietlibc (localtime() function) 9 8 * that you can find at https://www.fefe.de/dietlibc/ 10 - * This file is distributed under the terms of the GNU General Public 11 - * License (GPL). Copies of the GPL can be obtained from gnu.org/gpl. 12 9 */ 13 10 14 11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt