diff options
| author | Alexander A. Klimov <[email protected]> | 2020-07-13 11:05:11 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2020-07-17 17:58:04 +0000 |
| commit | fa0866a1d1be8ffa6979bf2127272b7e3d511fcd (patch) | |
| tree | 1157fd9d1d21c3f90ae1e95b46a08dad823aef49 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | cpupower: Fix NULL but dereferenced coccicheck errors (diff) | |
| download | kernel-fa0866a1d1be8ffa6979bf2127272b7e3d511fcd.tar.gz kernel-fa0866a1d1be8ffa6979bf2127272b7e3d511fcd.zip | |
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 <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
