diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2020-07-22 22:24:54 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-08-13 09:50:59 +0300 |
commit | 4f4ed4543e2096dc0158ff79bd6d8bc09e27fa93 (patch) | |
tree | e39bead62579cc472c3688bd0773d51c015f9adc /fs/d_path.c | |
parent | 3d858942250820b9adc35f963a257481d6d4c81d (diff) | |
download | linux-4f4ed4543e2096dc0158ff79bd6d8bc09e27fa93.tar.xz |
mfd: 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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'fs/d_path.c')
0 files changed, 0 insertions, 0 deletions