Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp612543ybt; Wed, 8 Jul 2020 07:38:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXC8c9aSHY7Sb4H6RxiNN910KA0rKPmHH/Xbyw6NJbnuv2Yyk+CBi09NNwcyLvcPaiwlo0 X-Received: by 2002:a17:906:3009:: with SMTP id 9mr35409843ejz.220.1594219125719; Wed, 08 Jul 2020 07:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594219125; cv=none; d=google.com; s=arc-20160816; b=MXSvMVpEo3Lzu0fJpsdkqXajPCCKXI5l4+L0olaFGLm1+Ip1HUy1kRs89TYGFlpds+ 4U2YJScoepBbjmuE9gu6grw1xH0CoPReMDCsAZoUqE6vcqfpYwK0EO4SN0Cj1uSbdrdL D3jobYNEqGmgqHJ4rk9QMs+dt0AolKXggliLdQDgDpgyOBNlrIQcUtXmP6ttXr2DhK45 EZKSiHCPvuiUX3ErxETMJKKV+kZuRjvG/K3V0P+UerdpvFm7bV28vh1z4Q6Hup3cLru9 707M9Sl5C/dJA4XDiEMwGfsG0DnLANzf3Eb8jaui3kKOg/HbaZZMomhuh+Je16D0XE93 5hKA== 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=VBn6SyWEAZVulXafRENybuGB01XF0132ltLYYpOsrtM=; b=reXtTaA8c5QXpztE3/mtWivLcGnujA+ib6Ozf/9IYbc7TDucdk8L5KMlMg+EsvbSq0 AzLV/I68vigOi+fX+HpKWe0Vv1RdjfA0wYeYmXksMXDKJECc9oB/RF7NMyfGLqXzEZU+ WMMDPgzyOsCAyIYgyxreXScFwq19qzIyIebIgQaaDNdsK4wzbG1OtmMluHPoPHRCxUB7 b2QxV04h75q4OUltwV/+EH8SxX1TbCpTDm2FK46SKhF5dkOyyh9Vq8WqTG/6vwY+1cUg O5XwIU6rKG04BZV52Vpr9mCgvkrxm30MmjAj0fC4DayNcl+VhiKUt+uwGiNguf1wEgww 5ggw== 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 a18si108046edx.421.2020.07.08.07.38.23; Wed, 08 Jul 2020 07:38:45 -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 S1729780AbgGHOiF (ORCPT + 99 others); Wed, 8 Jul 2020 10:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729468AbgGHOiF (ORCPT ); Wed, 8 Jul 2020 10:38:05 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC679C061A0B for ; Wed, 8 Jul 2020 07:38:04 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id EEEFDBC0EE; Wed, 8 Jul 2020 14:38:02 +0000 (UTC) From: "Alexander A. Klimov" To: jdelvare@suse.com, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] Replace HTTP links with HTTPS ones: DMI/SMBIOS SUPPORT Date: Wed, 8 Jul 2020 16:37:56 +0200 Message-Id: <20200708143756.14813-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 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. drivers/firmware/dmi_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index 5066d1f1d687..d51ca0428bb8 100644 --- a/drivers/firmware/dmi_scan.c +++ b/drivers/firmware/dmi_scan.c @@ -21,7 +21,7 @@ EXPORT_SYMBOL_GPL(dmi_kobj); /* * DMI stands for "Desktop Management Interface". It is part * of and an antecedent to, SMBIOS, which stands for System - * Management BIOS. See further: http://www.dmtf.org/standards + * Management BIOS. See further: https://www.dmtf.org/standards */ static const char dmi_empty_string[] = ""; -- 2.27.0