Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1226593ybh; Sun, 19 Jul 2020 12:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ZRAj75CkZRY2pLC8mFdGTRUWvvHNXwI1gzvZT+ZogMP0hYLEc1dnLSAbkyPAFYcFaynM X-Received: by 2002:a17:906:d143:: with SMTP id br3mr17428323ejb.268.1595186910047; Sun, 19 Jul 2020 12:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595186910; cv=none; d=google.com; s=arc-20160816; b=EtEHmKd6Rbu273mVs1rNdapC7FaMFjKrGEUyO8ffn03WY75Z1yP1Mzj3VrrmQzDqrA NhqTqaw3bBtC/KTsZ1/TjnjJxMYbfUcoCu78ayXGxyYLb/b9fQo6t8aYlhrYtyoQwtL3 XvpU4cjZkMaVtKUW7LmdoT+T4RBdcZ9CAlp1X4K8Autsptnst/Kq0EJR5HQHRmBKqRaY rJYo2n+wc44ybICAt+62wwYoJqhGTqATmNmwx2tuDmUW7XsLgRqpY8dZ9+EVCVmAMnBq 3l0LDDhU77ksoYarRN6xMs6zKXZPGXzY2k0JxUA5NG04jlHBN4W+rh8Al/g+deCX8hfz N19g== 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=eGXNFCILOXZOyJWqcy9VcQAWOwkKiltS5MjDqTUir7Y=; b=HCOV2/mSBFMPUnF/qn0Xy9iDQZBSGvnNzJyf2I/8ONOu0YTlwLgAo59fkSRy5/TLXD SAANoz/v4SRso57AUvSu7mDXstOpgpg8Jc8BGFDLIMyBbQYM7LoylyUE+HryIUIc2aMq 36b6Y516WPjOKrR38oRihZ6/wVIwzeDqEybfXqCo0hutWQLPMx5x5ggKvY9vsnuLvxFS /lVOrqf/O+5wrW6aJXadCIeT8R3uPHeX/Kkxtggoe0n4SRjkoXB2hxewGCfn18TOHbWI U+s33KLm1POHg+bxw81Kx4rYLdP0MIFrFxBpNMSaY4ZmHLjMvLOpHBLGeXCuDOtX9BL8 gq5A== 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 k19si8649193eji.419.2020.07.19.12.28.05; Sun, 19 Jul 2020 12:28:30 -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 S1726131AbgGSTZy (ORCPT + 99 others); Sun, 19 Jul 2020 15:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbgGSTZy (ORCPT ); Sun, 19 Jul 2020 15:25:54 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7962C0619D2; Sun, 19 Jul 2020 12:25:53 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id ACDF2BC085; Sun, 19 Jul 2020 19:25:50 +0000 (UTC) From: "Alexander A. Klimov" To: linux@roeck-us.net, jdelvare@suse.com, corbet@lwn.net, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH for v5.9] hwmon: (tmp401) Replace HTTP links with HTTPS ones Date: Sun, 19 Jul 2020 21:25:44 +0200 Message-Id: <20200719192544.61247-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 X-Spam: Yes 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/hwmon/tmp401.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/hwmon/tmp401.rst b/Documentation/hwmon/tmp401.rst index 6a05a0719bc7..14bf1fbf4493 100644 --- a/Documentation/hwmon/tmp401.rst +++ b/Documentation/hwmon/tmp401.rst @@ -47,7 +47,7 @@ Supported chips: Prefix: 'tmp461' - Datasheet: http://www.ti.com/product/tmp461 + Datasheet: https://www.ti.com/product/tmp461 -- 2.27.0