Skip to content

Commit fa52a4b

Browse files
Al2Klimovliuw
authored andcommitted
tools: hv: change http to https in hv_kvp_daemon.c
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 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]> Link: https://lore.kernel.org/r/[email protected] [ wei: change subject line to be more specific ] Signed-off-by: Wei Liu <[email protected]>
1 parent 775f43f commit fa52a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/hv/hv_kvp_daemon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ void kvp_get_os_info(void)
437437

438438
/*
439439
* Parse the /etc/os-release file if present:
440-
* http://www.freedesktop.org/software/systemd/man/os-release.html
440+
* https://www.freedesktop.org/software/systemd/man/os-release.html
441441
*/
442442
file = fopen("/etc/os-release", "r");
443443
if (file != NULL) {

0 commit comments

Comments
 (0)