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)
commit0bdd4cea12a9fd79a7eb7de8493a5fef54d0eea6
treea247f11d84678b9317cefe07501b0d0d34b6ac50
parent1138ce1cf60954d1c0e2d7b4eba5b4df5813fd86
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>
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