Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1139244ybh; Sun, 19 Jul 2020 09:40:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeL8qrJq6GVm1lGOs5LwW6Z38ujlHv9AYlU5fSCCHhWYeYbX6n3B7sb96f7LkbMljxOh6f X-Received: by 2002:a05:6402:3058:: with SMTP id bu24mr17803365edb.242.1595176829324; Sun, 19 Jul 2020 09:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595176829; cv=none; d=google.com; s=arc-20160816; b=f18CMgO05pC9cEGPG/zz43LfVsCQYXp95VgXjUcKUjXi7OH5wYEOOOwyjqwxJ5Oy9i n6CC5/G8wwHdW+R4V8CGQfUGRjUg80xbPm2WtXfREwsZqQIazuW90P53GTKdF0Ti3RzD qSY9KmP8eJQ0RBt9FU7W0wdQmC5ZX57M8oHAd1FUfWdUldxyz+gepH7WeeaJZJo4xtrB Yex7ikXFrRDUHtNFyf512L2mEKip7rmtZ0TDlxPGPdtsBb8HlZ3Hde3P8gDL+h8pSj1L 5sgOHHk/5+mN5S26u9tpwkEMaG9BO30OPP34z2bP4wuLTzomFoKLIZfQlGylxjT6G1iG h19g== 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=dGt4XxJUVZ0s330ejPojL053TkMvrG5b5twnO0DVHmI=; b=sNtXlzXIxX0uumHKng+ozwSjc5TQaQz7XaKqvYNR89R5QjzvYLvJpaXwV8i07xnyGP XOaR1+/jfPdyBufwJ1MT0gqbkR7ojl8D5D9e5mOzQ3BO6BhOvv+xfVuYcSrJ5gP/7W5x 6vaC+TRLy/IFalRnDMcz3tAwCbKInDwknZOLdT+3/CV+8xR2LMbKVFT2MoKdGnEh+ZGl sgX71o37LGDKzjufan7yn8D99/eTROmOfo+nbHEpmRJaEN/Nn+H+2Eyb/yRiaj13867q 5oX2Q4VVeIGG5UYWnuXg+uHif4UMRJa4dHMgH89k31M2bU+lSMPOawkIhrZqclVRH+tx 1RIw== 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 t28si9316531edc.97.2020.07.19.09.40.03; Sun, 19 Jul 2020 09:40:29 -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 S1726131AbgGSQj7 (ORCPT + 99 others); Sun, 19 Jul 2020 12:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgGSQj7 (ORCPT ); Sun, 19 Jul 2020 12:39:59 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3692C0619D2; Sun, 19 Jul 2020 09:39:58 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id E2448BC086; Sun, 19 Jul 2020 16:39:54 +0000 (UTC) From: "Alexander A. Klimov" To: jreuter@yaina.de, davem@davemloft.net, kuba@kernel.org, corbet@lwn.net, linux-hams@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH for v5.9] ax25: Replace HTTP links with HTTPS ones Date: Sun, 19 Jul 2020 18:39:48 +0200 Message-Id: <20200719163948.60227-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 neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`: 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 (Actually letting a shell for loop submit all this stuff for me.) If there are any URLs to be removed completely or at least not (just) 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. Sorry again to all maintainers who complained about subject lines. Now I realized that you want an actually perfect prefixes, not just subsystem ones. I tried my best... And yes, *I could* (at least half-)automate it. Impossible is nothing! :) Documentation/networking/z8530drv.rst | 4 ++-- drivers/net/hamradio/scc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/z8530drv.rst b/Documentation/networking/z8530drv.rst index d2942760f167..79c7f72f32c8 100644 --- a/Documentation/networking/z8530drv.rst +++ b/Documentation/networking/z8530drv.rst @@ -18,7 +18,7 @@ Internet: Please note that the information in this document may be hopelessly outdated. A new version of the documentation, along with links to other important Linux Kernel AX.25 documentation and programs, is available on -http://yaina.de/jreuter +https://yaina.de/jreuter Copyright |copy| 1993,2000 by Joerg Reuter DL1BKE @@ -683,4 +683,4 @@ in the Linux standard distribution and their support. Joerg Reuter ampr-net: dl1bke@db0pra.ampr.org AX-25 : DL1BKE @ DB0ABH.#BAY.DEU.EU Internet: jreuter@yaina.de - WWW : http://yaina.de/jreuter + WWW : https://yaina.de/jreuter diff --git a/drivers/net/hamradio/scc.c b/drivers/net/hamradio/scc.c index 33fdd55c6122..875d9262ef78 100644 --- a/drivers/net/hamradio/scc.c +++ b/drivers/net/hamradio/scc.c @@ -131,7 +131,7 @@ Joerg Reuter ampr-net: dl1bke@db0pra.ampr.org AX-25 : DL1BKE @ DB0ABH.#BAY.DEU.EU Internet: jreuter@yaina.de - www : http://yaina.de/jreuter + www : https://yaina.de/jreuter */ /* ----------------------------------------------------------------------- */ -- 2.27.0