Replace HTTP links with HTTPS ones: Documentation/admin-guide
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 27 Jun 2020 07:29:35 +0000 (09:29 +0200)
committerJonathan Corbet <corbet@lwn.net>
Sun, 5 Jul 2020 20:13:00 +0000 (14:13 -0600)
commit6b2484e13a52e9836e67e89cadc6189c40c8ae8c
tree22626c901a8b116c1254992c38abf3d55c05961c
parent3e28c5ca1dc6de5f1735bf87a0634d6fb4357778
Replace HTTP links with HTTPS ones: Documentation/admin-guide

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>
Link: https://lore.kernel.org/r/20200627072935.62652-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
12 files changed:
Documentation/admin-guide/dell_rbu.rst
Documentation/admin-guide/devices.txt
Documentation/admin-guide/ext4.rst
Documentation/admin-guide/kernel-parameters.txt
Documentation/admin-guide/laptops/disk-shock-protection.rst
Documentation/admin-guide/laptops/sonypi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/mm/ksm.rst
Documentation/admin-guide/nfs/nfs-client.rst
Documentation/admin-guide/nfs/nfs-rdma.rst
Documentation/admin-guide/nfs/nfsroot.rst
Documentation/admin-guide/sysctl/fs.rst