diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2020-07-13 13:05:11 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-07-17 11:58:04 -0600 |
commit | fa0866a1d1be8ffa6979bf2127272b7e3d511fcd (patch) | |
tree | 1157fd9d1d21c3f90ae1e95b46a08dad823aef49 /lib/mpi | |
parent | cbf25270933742c4a6d8671bba5c79a4e879cff3 (diff) |
cpupower: 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: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions