diff options
author | Alexander A. Klimov <[email protected]> | 2020-07-19 14:12:24 +0200 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2020-08-02 17:58:30 +0300 |
commit | 87b589a19901552a6d4b9976c17530d73e3c2dcf (patch) | |
tree | 0eab5d3e34ba25392cc81380e339dc938ee818be /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ba78405ecaac382d65d16dcd6798d8c64e264432 (diff) |
prism54: 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: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions