Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp827620ybh; Mon, 13 Jul 2020 02:14:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlXcc/lYT5XiEpe8JwxS4GuvTEdLze8d1TAqVBZQqR98sKGbHOIqglJIpsbyA/a/I1rhvO X-Received: by 2002:a50:fe16:: with SMTP id f22mr84120166edt.315.1594631694163; Mon, 13 Jul 2020 02:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594631694; cv=none; d=google.com; s=arc-20160816; b=p7cBB2XTKu01CXt6qmjrShlhYTU4+u+KhVzRaAR6S1lGQog2viHOYG/EB02L8NBXZP qoibd33NIabbV09o52RgYUdvGJ+gvzDA5eUduW5cxB4oK13X1p8Ksh4Kne7hxWdUh9AT bpl77hBPFFj2F6fg2zG9snTeJhzX4Rvzq0H+M+wiWyzc1xY8URuTP53zONEEkLbCLETe FCPkAvVUqYxwXc6ZBXvLTuaOYX8TayygGa5y7jabdiZ91Xz7eajN6eRXZT6FpsHu4Fh2 NX4Ov7r2UfjGrQgP+ViYKwWYfFYMnXULbgjxiuNXfLi3qFSNGQ5/Zkx0WJOiCeBexs83 sncA== 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=W0zoQTAZlKPkLONnTYxtRcetCTs8odbtZC1vGK0Le4g=; b=ZDefHtUMZAbnyYeiNsi1TR5AYrvXgtwHIV0DYvMVAAgzB51jIg83AvV3Ur5tLHALN5 UVC0H01b2oPpslqFdKJ6gU8VytzxgUhv6KkwyEjaJDoCLkMj+FXBouJzjMoH8xb6J6li RyrwDO0jX/aaN+cbEidXdgvhnA8EyIyp9J6HAAd9mA+5Hzr6LUYJdc3XPa5RYOof+5qU xwsShHLcrknIQ30PoNpUxSXvowb0rXlr1/v/Tv5eZOUaUsjRNc8UkokxWQV+tJ8Go7J6 A21fSwRgBxeiIyxIYJXQDR4d+CgbvFkdHEz7Y/jZmk5W/FCj5abnX+qDYvSyb2EYKc5U XQkw== 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 bt23si8394072edb.545.2020.07.13.02.14.31; Mon, 13 Jul 2020 02:14:54 -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 S1729423AbgGMJNQ (ORCPT + 99 others); Mon, 13 Jul 2020 05:13:16 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:48106 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbgGMJNP (ORCPT ); Mon, 13 Jul 2020 05:13:15 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 18357BC078; Mon, 13 Jul 2020 09:13:11 +0000 (UTC) From: "Alexander A. Klimov" To: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, samuel.thibault@ens-lyon.org, gregkh@linuxfoundation.org, speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] Staging: speakup: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 11:13:05 +0200 Message-Id: <20200713091305.32708-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! :) drivers/staging/speakup/spkguide.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/spkguide.txt b/drivers/staging/speakup/spkguide.txt index 1e622cd34363..3782f6a09e97 100644 --- a/drivers/staging/speakup/spkguide.txt +++ b/drivers/staging/speakup/spkguide.txt @@ -1531,7 +1531,7 @@ The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See -http://www.gnu.org/copyleft/. +https://www.gnu.org/copyleft/. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this -- 2.27.0