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

8042be
From 6ed9946f9a4f1a01846add2279e8d0640c1c2f1c Mon Sep 17 00:00:00 2001
8042be
From: Miroslav Rezanina <mrezanin@redhat.com>
8042be
Date: Thu, 6 May 2021 12:53:58 +0200
8042be
Subject: tools: hv: change http to https in hv_kvp_daemon.c
8042be
8042be
The patch has no functional change. Only changes the URL pointed to
8042be
in one of the comments
8042be
8042be
commit fa52a4b2d0ab416508538bb47a95167d4c94caac
8042be
Author: Alexander A. Klimov <grandmaster@al2klimov.de>
8042be
Date:   Sun Jul 5 23:44:57 2020 +0200
8042be
8042be
    tools: hv: change http to https in hv_kvp_daemon.c
8042be
8042be
    Rationale:
8042be
    Reduces attack surface on kernel devs opening the links for MITM
8042be
    as HTTPS traffic is much harder to manipulate.
8042be
8042be
    Deterministic algorithm:
8042be
    For each file:
8042be
      If not .svg:
8042be
        For each line:
8042be
          If doesn't contain `\bxmlns\b`:
8042be
            For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
8042be
              If both the HTTP and HTTPS versions
8042be
              return 200 OK and serve the same content:
8042be
                Replace HTTP with HTTPS.
8042be
8042be
    Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
8042be
    Link: https://lore.kernel.org/r/20200705214457.28433-1-grandmaster@al2klimov.de
8042be
    [ wei: change subject line to be more specific ]
8042be
    Signed-off-by: Wei Liu <wei.liu@kernel.org>
8042be
8042be
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
8042be
(cherry-picked from rhel 8.4.0 commit e956573)
8042be
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
8042be
---
8042be
 hv_kvp_daemon.c | 2 +-
8042be
 1 file changed, 1 insertion(+), 1 deletion(-)
8042be
8042be
diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c
8042be
index 0e5f14a..c06c94d 100644
8042be
--- a/hv_kvp_daemon.c
8042be
+++ b/hv_kvp_daemon.c
8042be
@@ -437,7 +437,7 @@ void kvp_get_os_info(void)
8042be
 
8042be
 	/*
8042be
 	 * Parse the /etc/os-release file if present:
8042be
-	 * http://www.freedesktop.org/software/systemd/man/os-release.html
8042be
+	 * https://www.freedesktop.org/software/systemd/man/os-release.html
8042be
 	 */
8042be
 	file = fopen("/etc/os-release", "r");
8042be
 	if (file != NULL) {
8042be
-- 
8042be
2.27.0
8042be