Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp909901ybh; Mon, 13 Jul 2020 04:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHqWdQAMfiYFrgFmOsTVsz5KuYCrTQku2WPUobqAsxQF4oIRiTr1gFfS62gc012Y0DGHZ7 X-Received: by 2002:a17:906:4341:: with SMTP id z1mr66747610ejm.392.1594640299444; Mon, 13 Jul 2020 04:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594640299; cv=none; d=google.com; s=arc-20160816; b=yORgYAdoCw5okFQk/3kDzQIeNHjPVEDG23gYDSOYfkThPa9Rpo6hA1VdXRx0S0gRW8 TexPGrVBu1yB9tGRf0hvmE3NRhWI/f2pk9EjhDP/9bcXFQ5doWHgWVG3YQ/MJX9MWYXm NjW/Zk25nkRPIXgr+7f0bND5pRhiTzhgnby9i6CXC2kJFj6O1KwR/RqzDFyR9WtcJOjx DwyPsLVr3m4VPEz9YxDsiX1ELjnKDGpUwygEXDVSxM9a1zWDeD09PZrdsuSBT0dIbJ6A mIZtrGyWAViXBJwbV1fNImpTlNNFMI96tu9B26Z1VZY8/26g4tOMicRRr4R8s1bj/Fu1 MrAw== 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=gMuvzIaAH2OjJumEvEceTt3hXWZtPmCMoIuBs3GKDAk=; b=qaFKbjnhK7jiCP8KHwqnTu7yQUVJmGADO0vmXxhryOGJ04+5gLD9vnlaytt4FyaDj8 8pK2IIJ2ZA38YH6H5FNJaWDKJP+m8V7fVwwruwyRpMW58KZ2HccTgnQgz97akwUKm/xM HPXmVnrxkPMv/X+XsFOhN1eUiYq1qQKVh8CD+8sukuGG2ZROTjbhxyDx3Q1jQeDEsok8 Ipx9zGZaGRTg/d6zR+AffQCGnl1DpZJbA9jNGJM1e558T7FMSInyJmHtifH68MSYSw4d alwtviJ7rkNqPFokznLHun8wH1HXxR3LK9OFz463Bct3AtICRQzf+R+aLvnhvxjyuUTX /SBQ== 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 yj19si8609157ejb.410.2020.07.13.04.37.55; Mon, 13 Jul 2020 04:38:19 -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 S1729680AbgGMLhV (ORCPT + 99 others); Mon, 13 Jul 2020 07:37:21 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:42366 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728382AbgGMLhU (ORCPT ); Mon, 13 Jul 2020 07:37:20 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 37E1ABC053; Mon, 13 Jul 2020 11:37:16 +0000 (UTC) From: "Alexander A. Klimov" To: dhowells@redhat.com, corbet@lwn.net, linux-cachefs@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] docs: filesystems: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 13:37:05 +0200 Message-Id: <20200713113705.33773-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/filesystems/caching/cachefiles.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/caching/cachefiles.rst b/Documentation/filesystems/caching/cachefiles.rst index 65d3db476765..e58bc1fd312a 100644 --- a/Documentation/filesystems/caching/cachefiles.rst +++ b/Documentation/filesystems/caching/cachefiles.rst @@ -348,7 +348,7 @@ data cached therein; nor is it permitted to create new files in the cache. There are policy source files available in: - http://people.redhat.com/~dhowells/fscache/cachefilesd-0.8.tar.bz2 + https://people.redhat.com/~dhowells/fscache/cachefilesd-0.8.tar.bz2 and later versions. In that tarball, see the files:: -- 2.27.0