diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2020-07-17 20:59:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-23 09:27:09 +0200 |
commit | 74b04fae4501f2b0424b01f0295bf26c5c8fce5a (patch) | |
tree | d536d9bf30125f98675dae09741254bfe0d2fa40 /scripts/Lindent | |
parent | c56967d674e361ebe716e66992e3c5332b25ac1f (diff) | |
download | linux-74b04fae4501f2b0424b01f0295bf26c5c8fce5a.tar.bz2 |
mei: 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: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20200717185925.84102-1-grandmaster@al2klimov.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Lindent')
0 files changed, 0 insertions, 0 deletions