]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ACPI: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Fri, 17 Jul 2020 18:24:36 +0000 (20:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jul 2020 12:47:08 +0000 (14:47 +0200)
commit4ce7796632a13d252f9c11b84342cc2d35903536
tree1865750ccf2cac26d7e193b1af1bd1f3b62c1aca
parent0585c1c06a550c2a606c33ad45954892245512f6
ACPI: 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>
Acked-by: Vishal Verma <vishal.l.verma@intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/firmware-guide/acpi/DSD-properties-rules.rst
Documentation/firmware-guide/acpi/dsd/data-node-references.rst
Documentation/firmware-guide/acpi/dsd/graph.rst
Documentation/firmware-guide/acpi/dsd/leds.rst
Documentation/firmware-guide/acpi/lpit.rst
drivers/acpi/Kconfig
drivers/acpi/nfit/nfit.h