]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 12 Jul 2020 11:11:18 +0000 (13:11 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:12 +0000 (22:05 -0400)
commit69faa6a5e58d98818b57c72263dff8c2f15579b2
tree77909686c0737b6150f90e0fdbdaddb3019ba35c
parent4826097b91b0fe6e832a9487804679e3a686fa94
sh: 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: Rich Felker <dalias@libc.org>
arch/sh/Kconfig