]> git.baikalelectronics.ru Git - kernel.git/commit
power: reset: keystone-reset: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 18 Jul 2020 09:43:40 +0000 (11:43 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 26 Jul 2020 21:46:16 +0000 (23:46 +0200)
commita503103d5ad5cf71445112d5e87700b97be7e539
treed66141b91180cb68547faaabfd6d837a0821c14c
parente34a7824e2424f968ce7fd79d6a2567e0e0765b8
power: reset: keystone-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: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/keystone-reset.c