Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1348428ybt; Tue, 7 Jul 2020 13:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJnt4kOYgRSHWpaXtn9xzDoWkagYW8286xT9NSdK79Z6yf1iG9wdmceONQzQVJWUv8iZ3X X-Received: by 2002:a17:906:fac1:: with SMTP id lu1mr44860399ejb.427.1594154070760; Tue, 07 Jul 2020 13:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594154070; cv=none; d=google.com; s=arc-20160816; b=pmyMihfUnA5trAf+q7N+c3bsoPSQ9ufVpqnU9Ny6X3Ge42goHKCmD1FKEX/mAUNVdM c8ZH99xZEXxgV8HsWyjcj3vsY4E1NAqZbYW/aXhqyBBgOqlX9V+Km2hebyvQxWOYjaD0 LtHFj6qdLRaL9CB8a0q3+BKI0DUj8vGqU6KHlL9DJNmSQRUiYQ3FonFO1659+AXxN+WZ 8czUvfJtmegvFuCfwqGepqgzpT4t17jsPe2C1kuMwUnuOC3PiGAQgsX3zjQ8ci5TbH93 NlbWP2qRXYpFOrHNhkWWEFVPlBXzZ1Jf03kxclbjS+YCVsrGgUFjySbP5fPI1t30pxmA UfJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fF/JYvZvpWH86RPpqickE9mFX8CgAErb/IG6D3gRn7c=; b=YuD8vFW929JWXh/vYHiwPFGwpi0Va2HjcqDGLN2ELvFnd4nL4u7LyD4W/wHwtx7isN DgCtn8soNaOFmFwWfLV1HwESh5HjLLf+KwJszWh+k9eE03IpbxEBrIo6fjwxSsymVAk4 wpM6HbRE7FiN3Gh3uZdlO+IBUmYyxLq1kp7XsryFRTn8VDVt3oY7m9/5XIfiRMZPBDje AvDKO6eCqcIeZLWVcmpW35WDxTi2pxsRakCyR49jgeQOnw7rZ2+QUI3NiYaYyeh155tZ 7IQS/2frTTIdFoWTyCm1JytOWkBz1pWE6q/QlI0P6/Ln/6dzO2h/+9uzu++2HYkiLJp4 k+cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov7si14684860ejb.224.2020.07.07.13.34.07; Tue, 07 Jul 2020 13:34:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728649AbgGGUc7 (ORCPT + 99 others); Tue, 7 Jul 2020 16:32:59 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:35514 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgGGUc6 (ORCPT ); Tue, 7 Jul 2020 16:32:58 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 375A1BC107; Tue, 7 Jul 2020 20:32:53 +0000 (UTC) From: "Alexander A. Klimov" To: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, corbet@lwn.net, johannes.berg@intel.com, brendanhiggins@google.com, erelx.geron@intel.com, linux@roeck-us.net, arnd@arndb.de, linux-um@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] Replace HTTP links with HTTPS ones: user-mode Linux Date: Tue, 7 Jul 2020 22:32:46 +0200 Message-Id: <20200707203246.53158-1-grandmaster@al2klimov.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: +++++ X-Spam-Level: ***** Authentication-Results: smtp.al2klimov.de; auth=pass smtp.auth=aklimov@al2klimov.de smtp.mailfrom=grandmaster@al2klimov.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Continuing my work started at 93431e0607e5. See also: git log --oneline '--author=Alexander A. Klimov ' v5.7..master If there are any URLs to be removed completely or at least not HTTPSified: Just clearly say so and I'll *undo my change*. See also: https://lkml.org/lkml/2020/6/27/64 If there are any valid, but yet not changed URLs: See: https://lkml.org/lkml/2020/6/26/837 If you apply the patch, please let me know. Rationale: I'd like not to submit patches much faster than you maintainers apply them. Documentation/virt/uml/user_mode_linux.rst | 2 +- arch/um/drivers/Kconfig | 2 +- arch/um/drivers/harddog_kern.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/virt/uml/user_mode_linux.rst b/Documentation/virt/uml/user_mode_linux.rst index de0f0b2c9d5b..775d3de84331 100644 --- a/Documentation/virt/uml/user_mode_linux.rst +++ b/Documentation/virt/uml/user_mode_linux.rst @@ -3753,7 +3753,7 @@ Note: Documentation on IP Masquerading, and SNAT, can be found at - http://www.netfilter.org. + https://www.netfilter.org. If you can reach the local net, but not the outside Internet, then diff --git a/arch/um/drivers/Kconfig b/arch/um/drivers/Kconfig index 9160ead56e33..85e170149e99 100644 --- a/arch/um/drivers/Kconfig +++ b/arch/um/drivers/Kconfig @@ -259,7 +259,7 @@ config UML_NET_VDE To use this form of networking, you will need to run vde_switch on the host. - For more information, see + For more information, see That site has a good overview of what VDE is and also examples of the UML command line to use to enable VDE networking. diff --git a/arch/um/drivers/harddog_kern.c b/arch/um/drivers/harddog_kern.c index e6d4f43deba8..7a39b8b7ae55 100644 --- a/arch/um/drivers/harddog_kern.c +++ b/arch/um/drivers/harddog_kern.c @@ -3,7 +3,7 @@ * SoftDog 0.05: A Software Watchdog Device * * (c) Copyright 1996 Alan Cox , All Rights Reserved. - * http://www.redhat.com + * https://www.redhat.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License -- 2.27.0