]> 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)
commitaac279414a08c998ec5d891a07aee9cd83e073d6
tree77909686c0737b6150f90e0fdbdaddb3019ba35c
parent625ac27720d90b686bb0324e0c1d72873906f598
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