Blame SOURCES/hvd-tools-hv-change-http-to-https-in-hv_kvp_daemon.c.patch

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