Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1760670ybh; Thu, 16 Jul 2020 23:42:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPdWSGZu/4WJECsRH9UB2pLFtdbbZHi/h5ZLA3aCODdmohd5wiPRukzUruI862OmLcLv2/ X-Received: by 2002:a17:906:97d7:: with SMTP id ef23mr7414203ejb.450.1594968130795; Thu, 16 Jul 2020 23:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594968130; cv=none; d=google.com; s=arc-20160816; b=EdJ6Q3tHcWsGtn6pC2AJ7/f8KLQUJxobvDm8orJPkadqb3hNaFcgyydkTkP6t6FCDh iZFlhD4F0yC+Jv5n/eDxF8MqC3irAzZMupXb1s6PXkiEdVLMi2jPc6cFHDUJU7hnZ1Ej +wbIRZBxVEmSQIy23pDP4z6wKq/LC53eRHH/midhyQ/G+2XHEcjswvsdqgeB7AA/rrnT R+ShSrwc9E3jaC8BW71ox3VsSnmzCXX+UWD9/w3W+b9+KrRJxCItljaODVgStlFJZ1Gs Nm6rKJxLazZU15j+5qsH5HZi/bD8z8L71Ohnngg36o0qG3bnYduQHX4V2lLYAzRbQP0l 8g8g== 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=x3ICqMMtS2GzhNajVv5JF3LYa34fgBI7h6e2AVvjHbM=; b=GsyTKzRYZUJ/uCwjcyk5BWWESbZ7RfdNTELkswOEWsucbpz0rAvcv2huYTvk9Ph7k7 8y3K4VkhIa6T5n06sF7Fb8Lnv+OmkDN9Fa2IvJVep+G/1CsavgfQas38mtw+PkEka6Y2 LQtgW8nxIL89zrPro4vxhMIGm0TvTtSmG1OgXCR00taFtfPtb9FmFywOexuyZPReSvas 15KV/P6NvhrTpqAb2VtxxGEVc4zET6GydyrUt+G976htLilv4C4dWC2U9oDAB+QBEW4i HkHQGjYeskg4Xh79o/suHG3OSXbCCLA5hIQMiVvN0YgupgQI0RfeQEDMzUuN/IKSJeYA k87A== 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 pk22si4331267ejb.235.2020.07.16.23.41.48; Thu, 16 Jul 2020 23:42:10 -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 S1728102AbgGQGiq (ORCPT + 99 others); Fri, 17 Jul 2020 02:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbgGQGip (ORCPT ); Fri, 17 Jul 2020 02:38:45 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6D1C061755; Thu, 16 Jul 2020 23:38:45 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 364FCBC071; Fri, 17 Jul 2020 06:38:41 +0000 (UTC) From: "Alexander A. Klimov" To: dave@stgolabs.net, axboe@kernel.dk, linux-efi@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] partitions/efi: Replace HTTP links with HTTPS ones Date: Fri, 17 Jul 2020 08:38:35 +0200 Message-Id: <20200717063835.68492-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 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! :) block/partitions/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/partitions/efi.c b/block/partitions/efi.c index b64bfdd4326c..15b353d0cb4f 100644 --- a/block/partitions/efi.c +++ b/block/partitions/efi.c @@ -3,7 +3,7 @@ * EFI GUID Partition Table handling * * http://www.uefi.org/specs/ - * http://www.intel.com/technology/efi/ + * https://www.intel.com/technology/efi/ * * efi.[ch] by Matt Domsch * Copyright 2000,2001,2002,2004 Dell Inc. -- 2.27.0