Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1253369ybh; Mon, 13 Jul 2020 13:30:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjU+HR3BQRHopHIN3QGuetHfl0JzCi8Qzv5UTVj+9tBHtLsp1Jozig2awFIankuFSYjzz3 X-Received: by 2002:a17:906:1f94:: with SMTP id t20mr1387514ejr.233.1594672247063; Mon, 13 Jul 2020 13:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594672247; cv=none; d=google.com; s=arc-20160816; b=zd7phfoYVdQ3lIsOkABtG2us1ue3Nffy7mnl7VHAmd7gR/p9HVMnHo/X3VNKkds2gB QyFfAsufuyZMC4QoHWrz+0N7Jhp/o75nF2PVVTSJ4Ebf/IT44yGm3L9AqDPyQgjvax21 dG6wfNhx8qfvHkumw5xhLYMc1BbXWxiwa2sZ0sa5QDgVy9tGgYVlGQwRO9jJIig2CSvW /OiXQaSqdUPkh+JpAkbmybHCWcx7QIvz6vQCNhvLC+py8uywCo4TwsKYHRtF2KyiL2/U 5yokr+heW9LKg8R9UmmnS3jcZUYSIpjrROunEF6j3BV/NuwD9HaNBHVAgWo9/5Bt+dPr Dqgg== 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=THQGB70XLHRIaGDBznNkctK6LVnuftXloYBwHDDYffw=; b=FCxIFRfxwo+oVBZqaDoXlN0v10b0DSw831Hzaq1aQLxM099X8i1wxV2Gy3Lg3AYe1B L1A2yZFqvdS0gZYi1XGCEZCyFfVBX/DXi4dJwhdLK5BPOz8XwnJAinXzoexj2g10cqAE Bb2Z3+cgas9See+Wat+kU7ftegaXH8ubPESgMHjwXNpnB4XqSCb+Z8ymLOsp+4DKvvz/ UVX5qWqCEImvoaqgiXM5wX9fz8A/JJN26eoUkSs4mEBsW/DHAFNNDlfFeSswG+eqZ/VL +e/z7gN0bNTgC5QxgMmp6RIUCWwTcn8M2bVeiAPI/PHZyoua/Y4I3KKXyBjz6rdIgWEC xb7A== 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 h21si9492778edw.233.2020.07.13.13.30.23; Mon, 13 Jul 2020 13:30:47 -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 S1726661AbgGMU2F (ORCPT + 99 others); Mon, 13 Jul 2020 16:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbgGMU2F (ORCPT ); Mon, 13 Jul 2020 16:28:05 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B36C061755 for ; Mon, 13 Jul 2020 13:28:04 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id C55D6BC053; Mon, 13 Jul 2020 20:28:02 +0000 (UTC) From: "Alexander A. Klimov" To: dot@dotat.at, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] unifdef: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 22:27:55 +0200 Message-Id: <20200713202755.38022-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! :) scripts/unifdef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unifdef.c b/scripts/unifdef.c index db00e3e30a59..4247c6d51885 100644 --- a/scripts/unifdef.c +++ b/scripts/unifdef.c @@ -59,7 +59,7 @@ const char copyright[] = "@(#) $Version: unifdef-2.5 $\n" "@(#) $Author: Tony Finch (dot@dotat.at) $\n" - "@(#) $URL: http://dotat.at/prog/unifdef $\n" + "@(#) $URL: https://dotat.at/prog/unifdef $\n" ; /* types of input lines: */ -- 2.27.0