]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ssb: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Fri, 10 Jul 2020 06:21:51 +0000 (08:21 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Jul 2020 16:47:10 +0000 (19:47 +0300)
commit0db5bc7b344736731a3982885402914b34dd252b
treeb4395d973cfcc0bfe43b29b3d9e7d5b1617e07ed
parent4f3ebd6fb6806a948df9eb1dc7ea9bb76e2712ec
ssb: 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: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200710062151.28871-1-grandmaster@al2klimov.de
drivers/ssb/driver_chipcommon.c
drivers/ssb/driver_chipcommon_pmu.c
drivers/ssb/sprom.c