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

Replace HTTP links with HTTPS ones: NFS, SUNRPC, and LOCKD clients

Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Alexander A. Klimov and committed by
Anna Schumaker
0bdd4cea 1138ce1c

+5 -5
+1 -1
fs/lockd/mon.c
··· 417 417 /* 418 418 * XDR functions for NSM. 419 419 * 420 - * See http://www.opengroup.org/ for details on the Network 420 + * See https://www.opengroup.org/ for details on the Network 421 421 * Status Monitor wire protocol. 422 422 */ 423 423
+1 -1
include/linux/sunrpc/bc_xprt.h
··· 4 4 5 5 NetApp provides this source code under the GPL v2 License. 6 6 The GPL v2 license is available at 7 - http://opensource.org/licenses/gpl-license.php. 7 + https://opensource.org/licenses/gpl-license.php. 8 8 9 9 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 10 10 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+1 -1
include/linux/sunrpc/msg_prot.h
··· 143 143 /* 144 144 * Well-known netids. See: 145 145 * 146 - * http://www.iana.org/assignments/rpc-netids/rpc-netids.xhtml 146 + * https://www.iana.org/assignments/rpc-netids/rpc-netids.xhtml 147 147 */ 148 148 #define RPCBIND_NETID_UDP "udp" 149 149 #define RPCBIND_NETID_TCP "tcp"
+1 -1
net/sunrpc/backchannel_rqst.c
··· 5 5 6 6 NetApp provides this source code under the GPL v2 License. 7 7 The GPL v2 license is available at 8 - http://opensource.org/licenses/gpl-license.php. 8 + https://opensource.org/licenses/gpl-license.php. 9 9 10 10 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 11 11 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+1 -1
net/sunrpc/sunrpc.h
··· 4 4 5 5 NetApp provides this source code under the GPL v2 License. 6 6 The GPL v2 license is available at 7 - http://opensource.org/licenses/gpl-license.php. 7 + https://opensource.org/licenses/gpl-license.php. 8 8 9 9 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 10 10 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT