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

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