]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: apple-gmux: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Tue, 14 Jul 2020 19:07:21 +0000 (21:07 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jul 2020 10:01:20 +0000 (13:01 +0300)
commit7d0b8bde21bcdc477d47697fb186459ba7e260b0
treeb7e8e4fa26a7e01a01741951d74d73d869fac907
parent62ca8c06a79102c8e6925611410c12545fdbe234
platform/x86: apple-gmux: 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/apple-gmux.c