]> git.baikalelectronics.ru Git - kernel.git/commit
reset: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 18 Jul 2020 12:18:15 +0000 (14:18 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Jul 2020 09:27:12 +0000 (11:27 +0200)
commitb0af04403cba1e2586ad03c68904f67a8d8b86e3
treee60fcebfd8e61d3caf71f4422dc75d12fe0f0e89
parent2618ee5be4051ff0bdfa9cb071dab82f767cd07f
reset: 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: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-ti-syscon.c
include/dt-bindings/reset/ti-syscon.h