Replace HTTP links with HTTPS ones: Documentation/filesystems
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 21 Jun 2020 13:35:52 +0000 (15:35 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 26 Jun 2020 17:14:12 +0000 (11:14 -0600)
commitc69f22f25f1105cb4e629b5c2da61a245b653ce1
treeb9a8f88ebcdbc74db32ce9d17642172148862f7d
parentd3603f4c30c24b43f49bf9c1dbc93b06f7a7775d
Replace HTTP links with HTTPS ones: Documentation/filesystems

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/20200621133552.46371-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/filesystems/hfs.rst
Documentation/filesystems/hpfs.rst
Documentation/filesystems/nfs/rpc-server-gss.rst
Documentation/filesystems/path-lookup.rst
Documentation/filesystems/ramfs-rootfs-initramfs.rst
Documentation/filesystems/ubifs-authentication.rst
Documentation/filesystems/vfs.rst