ARM: dts: kirkwood: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Mon, 13 Jul 2020 07:09:08 +0000 (09:09 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Sat, 18 Jul 2020 20:39:13 +0000 (22:39 +0200)
commit947c6ce5ea5d7c30bfcd9a09c2952a849d813d53
tree0deb379e3ec11d96612dbb042d7cc5f5ca2e5e4f
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
ARM: dts: kirkwood: 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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/boot/dts/kirkwood-b3.dts