|
|
ffba00 |
From e956573e4fd5e489fd68a7d46f0aa715ee19084e Mon Sep 17 00:00:00 2001
|
|
|
ffba00 |
From: Mohammed Gamal <mgamal@redhat.com>
|
|
|
ffba00 |
Date: Wed, 25 Nov 2020 15:23:29 +0100
|
|
|
ffba00 |
Subject: [PATCH] tools: hv: change http to https in hv_kvp_daemon.c
|
|
|
ffba00 |
|
|
|
ffba00 |
RH-Author: Mohammed Gamal Morsy (mmorsy)
|
|
|
ffba00 |
RH-MergeRequest: 1: RHEL 8.4.0 updates
|
|
|
ffba00 |
RH-Commit: [1/1] b7202f11 (mmorsy/hyperv-daemons)
|
|
|
ffba00 |
RH-Bugzilla: 1886104
|
|
|
ffba00 |
|
|
|
ffba00 |
The patch has no functional change. Only changes the URL pointed to
|
|
|
ffba00 |
in one of the comments
|
|
|
ffba00 |
|
|
|
ffba00 |
commit fa52a4b2d0ab416508538bb47a95167d4c94caac
|
|
|
ffba00 |
Author: Alexander A. Klimov <grandmaster@al2klimov.de>
|
|
|
ffba00 |
Date: Sun Jul 5 23:44:57 2020 +0200
|
|
|
ffba00 |
|
|
|
ffba00 |
tools: hv: change http to https in hv_kvp_daemon.c
|
|
|
ffba00 |
|
|
|
ffba00 |
Rationale:
|
|
|
ffba00 |
Reduces attack surface on kernel devs opening the links for MITM
|
|
|
ffba00 |
as HTTPS traffic is much harder to manipulate.
|
|
|
ffba00 |
|
|
|
ffba00 |
Deterministic algorithm:
|
|
|
ffba00 |
For each file:
|
|
|
ffba00 |
If not .svg:
|
|
|
ffba00 |
For each line:
|
|
|
ffba00 |
If doesn't contain `\bxmlns\b`:
|
|
|
ffba00 |
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
|
|
|
ffba00 |
If both the HTTP and HTTPS versions
|
|
|
ffba00 |
return 200 OK and serve the same content:
|
|
|
ffba00 |
Replace HTTP with HTTPS.
|
|
|
ffba00 |
|
|
|
ffba00 |
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
|
|
|
ffba00 |
Link: https://lore.kernel.org/r/20200705214457.28433-1-grandmaster@al2klimov.de
|
|
|
ffba00 |
[ wei: change subject line to be more specific ]
|
|
|
ffba00 |
Signed-off-by: Wei Liu <wei.liu@kernel.org>
|
|
|
ffba00 |
|
|
|
ffba00 |
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
|
|
|
ffba00 |
---
|
|
|
ffba00 |
hv_kvp_daemon.c | 2 +-
|
|
|
ffba00 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
ffba00 |
|
|
|
ffba00 |
diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c
|
|
|
ffba00 |
index ee9c1bb..1e6fd6c 100644
|
|
|
ffba00 |
--- a/hv_kvp_daemon.c
|
|
|
ffba00 |
+++ b/hv_kvp_daemon.c
|
|
|
ffba00 |
@@ -437,7 +437,7 @@ void kvp_get_os_info(void)
|
|
|
ffba00 |
|
|
|
ffba00 |
/*
|
|
|
ffba00 |
* Parse the /etc/os-release file if present:
|
|
|
ffba00 |
- * http://www.freedesktop.org/software/systemd/man/os-release.html
|
|
|
ffba00 |
+ * https://www.freedesktop.org/software/systemd/man/os-release.html
|
|
|
ffba00 |
*/
|
|
|
ffba00 |
file = fopen("/etc/os-release", "r");
|
|
|
ffba00 |
if (file != NULL) {
|
|
|
ffba00 |
--
|
|
|
ffba00 |
2.18.4
|
|
|
ffba00 |
|