]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IDE SUBSYSTEM: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Thu, 9 Jul 2020 19:28:13 +0000 (21:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 01:48:46 +0000 (18:48 -0700)
commit2c8cbe0b2971f75073eddf848686a213132fce47
tree5ca87ca3ae980cef0d08981039b36ee12c3ea1ff
parentac3a0c8472969a03c0496ae774b3a29eb26c8d5a
IDE SUBSYSTEM: 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: David S. Miller <davem@davemloft.net>
drivers/ide/Kconfig
drivers/ide/hpt366.c