Replace HTTP links with HTTPS ones: ATMEL MACB ETHERNET DRIVER
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Wed, 8 Jul 2020 10:35:19 +0000 (12:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2020 17:35:09 +0000 (10:35 -0700)
commit5d75c04306f7f906c1200bef42406ccb71d4b75f
tree8962c03d49c1d1946dede7e71ad8745149e2b615
parent93165ecbe1d0298bdaa9ddc4b4e4ff01831dc6c9
Replace HTTP links with HTTPS ones: ATMEL MACB ETHERNET DRIVER

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: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_pci.c
drivers/net/ethernet/cadence/macb_ptp.c