Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1202717ybh; Mon, 13 Jul 2020 11:57:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/SetwjfI7YL0oqwEU2qyFLlrXaooA3nMvxHym1ZPBc6+Qg/BmiU2jquFubs2HMi+/9ypP X-Received: by 2002:a05:6402:b6c:: with SMTP id cb12mr831896edb.116.1594666655533; Mon, 13 Jul 2020 11:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594666655; cv=none; d=google.com; s=arc-20160816; b=0dJlLo/Ttcc/8Ltu2IRqeZVtyMxS7DbJjcO4vtAuL2mRisvrMWUO8YrrxxKNW/Rkg2 YnfggVpV3qBEXFOSdiFNtSS/6/b9Y08DInE4Tk8K0Wcl/CrcDM4edbsarZX3qH1GPeTW cVTKGmvGpZVYPP8IsDbQh/wPhFpPSFPTqxRhn2u2L1MzADWWKUvVjoL3cof932C+uTz7 amh69ME87o9AKCvgSjbxe+zRukI01DMHYPaiMO3weColNTkybJD8wDw0NoammzXlunZ0 I2PigQ71OjaqmA+v1T2em+/Ij9K/NeEOx33DDrdTOUsYB3+rthI8HgsCOaCQkNiUqsJ5 FM4A== 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=Hj2vmtHTmwpQYDG0wQxnV2QuA9S7l8q93e4KjGtW8nU=; b=Jeb/qbIhBmYXQmmSPGheXu9BnQusi3Lu4vNbeHO6FSDf+s++3py0x3zsLQT+Vsrqoi IzdZCVLkuHQAPvDd0O2W3wgaQRbXUFMQ9b6vLZl6fKvOyZoM/KJ+6pewj2Fm25a5fW4a /MYl3mNAo4tUbQ3hxMR/NDCEoS/5C+4SGzDMUuTjqwKCVHKk3J/2z72jSWDqIGdpY4T8 AkKMb0UvFQMil+9uwZVoxuY/R89gWoACvLxW5kSsc0BuIgRI02lFNkD8JURGDOazMUx2 /7/lZdDk4NO6DfsWTx/8qcMYdw6uWW2UA0IxtBU3ZJNGP06GHdYLo/llphwdMc6qrHPy tfXg== 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 e13si10416988ejc.215.2020.07.13.11.57.12; Mon, 13 Jul 2020 11:57:35 -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 S1726675AbgGMS4a (ORCPT + 99 others); Mon, 13 Jul 2020 14:56:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbgGMS4a (ORCPT ); Mon, 13 Jul 2020 14:56:30 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50687C061755; Mon, 13 Jul 2020 11:56:30 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id D7174BC07E; Mon, 13 Jul 2020 18:56:26 +0000 (UTC) From: "Alexander A. Klimov" To: peter@piie.net, dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] platform/x86: acerhdf: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 20:56:16 +0200 Message-Id: <20200713185616.37104-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/platform/x86/acerhdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index 4df7609b4aa9..a7a0b2e0ceb9 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c @@ -5,7 +5,7 @@ * as soon as the upper/lower threshold is reached. * * (C) 2009 - Peter Kaestle peter (a) piie.net - * http://piie.net + * https://piie.net * 2009 Borislav Petkov bp (a) alien8.de * * Inspired by and many thanks to: -- 2.27.0