arch/sparc: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Mon, 13 Jul 2020 09:53:51 +0000 (11:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jul 2020 23:59:29 +0000 (16:59 -0700)
commit37719576046b553092d5a88de90459306dfdec6b
treebd1b7742cf12b74ceba1bdf64db88eaa6201eec6
parent5124b31c1e90797e26710377d04eb005759494a0
arch/sparc: 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 neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
            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>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Kconfig