OSDN Git Service

Replace HTTP links with HTTPS ones: Documentation/driver-api
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 21 Jun 2020 13:35:12 +0000 (15:35 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 26 Jun 2020 17:09:04 +0000 (11:09 -0600)
commitd3603f4c30c24b43f49bf9c1dbc93b06f7a7775d
tree19f639328c7094c3c328908753db332f3d115986
parentc5f95886fa9837b0cfc33ebcf4cdb0797018a991
Replace HTTP links with HTTPS ones: Documentation/driver-api

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/20200621133512.46311-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/driver-api/early-userspace/early_userspace_support.rst
Documentation/driver-api/memory-devices/ti-gpmc.rst
Documentation/driver-api/mmc/mmc-tools.rst
Documentation/driver-api/nvdimm/nvdimm.rst
Documentation/driver-api/nvdimm/security.rst
Documentation/driver-api/rapidio/rapidio.rst
Documentation/driver-api/thermal/nouveau_thermal.rst
Documentation/driver-api/usb/writing_usb_driver.rst