]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit6abe66ec23d315aa1e8e1b65a7848c3eb07dc351
treeb7e8e4fa26a7e01a01741951d74d73d869fac907
parentf560cd502190a9fd0ca8db0a15c5cca7d9091d2c
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