]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/regulator/tps65217-regulator.c
regulator: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 19 Jul 2020 20:06:23 +0000 (22:06 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2020 13:43:48 +0000 (14:43 +0100)
commit2ca76b3e4954ea6bbb365005edc8d5237b488cf1
treea1d14b5d7be69aa1422c2c3d279e0ddaf1186c93
parent175a1d84154d4077da437b873319bd094b266ab8
regulator: 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: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200719200623.61524-1-grandmaster@al2klimov.de
Signed-off-by: Mark Brown <broonie@kernel.org>
12 files changed:
Documentation/devicetree/bindings/regulator/lp872x.txt
drivers/regulator/hi6421-regulator.c
drivers/regulator/hi6421v530-regulator.c
drivers/regulator/lp873x-regulator.c
drivers/regulator/lp87565-regulator.c
drivers/regulator/pbias-regulator.c
drivers/regulator/tps65023-regulator.c
drivers/regulator/tps6507x-regulator.c
drivers/regulator/tps65086-regulator.c
drivers/regulator/tps65217-regulator.c
drivers/regulator/tps65218-regulator.c
drivers/regulator/tps65912-regulator.c