OSDN Git Service

Replace HTTP links with HTTPS ones: DRBD driver
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 27 Jun 2020 10:31:11 +0000 (12:31 +0200)
committerJonathan Corbet <corbet@lwn.net>
Sun, 5 Jul 2020 20:16:44 +0000 (14:16 -0600)
commitc0ad0befed93a6f567edb230954b744d4926cafa
tree96e9cbcd4ae28f38fb48772d5d297bff55d7ce32
parent3839a7460721b87501134697b7b90c45dcc7825d
Replace HTTP links with HTTPS ones: DRBD driver

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/20200627103111.71771-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/admin-guide/blockdev/drbd/index.rst
Documentation/admin-guide/blockdev/floppy.rst
drivers/block/drbd/Kconfig