ext4: replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Mon, 6 Jul 2020 19:03:39 +0000 (21:03 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Aug 2020 05:01:57 +0000 (01:01 -0400)
commite65bf6e468c39a60c1dfae439198ad875bb8a870
tree2a98eac6a2dd31594526527b82f0ca3931bbb657
parente5f78159d62f79eb7923561275290b7c95e7f03f
ext4: replace HTTP links with HTTPS ones

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/20200706190339.20709-1-grandmaster@al2klimov.de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Documentation/filesystems/ext4/about.rst
fs/ext4/Kconfig