OSDN Git Service

Replace HTTP links with HTTPS ones: Documentation/process
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 21 Jun 2020 13:36:30 +0000 (15:36 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 26 Jun 2020 17:19:43 +0000 (11:19 -0600)
commite7b4311ebcac142be28c9fa1b9f63a9d35fc2a92
tree85543c0fe2ac5e9e3cd578ca4503b02e302253a7
parentc69f22f25f1105cb4e629b5c2da61a245b653ce1
Replace HTTP links with HTTPS ones: Documentation/process

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>
Acked-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Link: https://lore.kernel.org/r/20200621133630.46435-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/process/2.Process.rst
Documentation/process/4.Coding.rst
Documentation/process/botching-up-ioctls.rst
Documentation/process/changes.rst
Documentation/process/clang-format.rst
Documentation/process/coding-style.rst
Documentation/process/howto.rst
Documentation/process/kernel-docs.rst
Documentation/process/maintainer-pgp-guide.rst
Documentation/process/submitting-drivers.rst
Documentation/process/submitting-patches.rst