]> www.infradead.org Git - linux.git/commitdiff
Replace HTTP links with HTTPS ones: NFS, SUNRPC, and LOCKD clients
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Tue, 7 Jul 2020 19:50:12 +0000 (21:50 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 21 Sep 2020 14:21:10 +0000 (10:21 -0400)
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>
fs/lockd/mon.c
include/linux/sunrpc/bc_xprt.h
include/linux/sunrpc/msg_prot.h
net/sunrpc/backchannel_rqst.c
net/sunrpc/sunrpc.h

index 1eabd91870e6f6351571eef85d7b76cc9fa0e8e2..1d9488cf0534802c6b59e11891e806ea0cd554b2 100644 (file)
@@ -417,7 +417,7 @@ void nsm_release(struct nsm_handle *nsm)
 /*
  * XDR functions for NSM.
  *
- * See http://www.opengroup.org/ for details on the Network
+ * See https://www.opengroup.org/ for details on the Network
  * Status Monitor wire protocol.
  */
 
index d796058cdff2a82b0c65450f988f29683513cea8..f07c334c599f4eaaa4960fb56681cad8de8b66cc 100644 (file)
@@ -4,7 +4,7 @@
 
 NetApp provides this source code under the GPL v2 License.
 The GPL v2 license is available at
-http://opensource.org/licenses/gpl-license.php.
+https://opensource.org/licenses/gpl-license.php.
 
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
index bea40d9f03a122887b337bbf4e2e6aec209aac4c..43f854487539b24382c44df67f1014b4ced3e92b 100644 (file)
@@ -143,7 +143,7 @@ typedef __be32      rpc_fraghdr;
 /*
  * Well-known netids. See:
  *
- *   http://www.iana.org/assignments/rpc-netids/rpc-netids.xhtml
+ *   https://www.iana.org/assignments/rpc-netids/rpc-netids.xhtml
  */
 #define RPCBIND_NETID_UDP      "udp"
 #define RPCBIND_NETID_TCP      "tcp"
index 195b40c5dae4ba8cb364c46d4631680b257bb7fa..3fecad369592e4c0323ae6c03d6f5aa38ac8d335 100644 (file)
@@ -5,7 +5,7 @@
 
 NetApp provides this source code under the GPL v2 License.
 The GPL v2 license is available at
-http://opensource.org/licenses/gpl-license.php.
+https://opensource.org/licenses/gpl-license.php.
 
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
index f6fe2e6cd65a1f101752e1c09e29448deb2df00c..2f59464e6524971b53c31f3c6c988315d3b4357e 100644 (file)
@@ -4,7 +4,7 @@
 
 NetApp provides this source code under the GPL v2 License.
 The GPL v2 license is available at
-http://opensource.org/licenses/gpl-license.php.
+https://opensource.org/licenses/gpl-license.php.
 
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT