Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp246576pxa; Thu, 27 Aug 2020 00:40:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySEy9OvvdECafkzfsxSD/Jc1S8wI722O2iC26xogmKdCWDoVQ40GgtbCeFHn/eFdp9pLtS X-Received: by 2002:a17:906:5418:: with SMTP id q24mr18597622ejo.296.1598514039890; Thu, 27 Aug 2020 00:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598514039; cv=none; d=google.com; s=arc-20160816; b=ZLp2tM8E5XEHyMeVAbZ+sJcLdq8970e9Cup69dPtH6GNHwdlHFd1nwW3Xra3z/Pn4m NJpVyuAerB7ofzjnPIFvoSoQt5NXiAsfT2OUbTc5lTf9yvR3ldW8rC4yA7MaUdMApboD of9d0kucgfuMa6/XsIxBgLN9BoYj4NynB9AaIhyG2FVmkwyLxeVMlGbcQ4Uij0UfaZ3x CRYUw0kRIBOcj5xWoYN4X2TsNG5iZ09JOkguq0Ql/lINp5PRrSg+kCsUa0EsA4+Rhxxh YIFgrC7Ysw2JLEIQkofvJ3p8E9fvaWweM59OOayw6uXjM8MF/odBNxetgDi5sQO2au9c K8Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=bczqUQFB57ZFAWLvm+qps8KvfzclY1FoGAFfhuT5eN4=; b=qNhq3V0odIFMnkhop9h7vacjqMC9sidZLSOyiAcOk99OBVlx5pvN46J1bjmL6h1lIg qfFGu9D2zMfwA3iErpxeW8EnaWlM7A/or6tXr9vvogm0EdDNfoU5ntbKNYye/CmxV1l9 QOveyC0tLrJYLDcI/NG8DTV/FnwC77tZhn2tUi7GHHIevaEAgFqIAhmDjFabITv5M7lH BfImPXA5+DaYUB+99RlvKGZdDZ02xuTg4lkIn420oJCb5cTzAGVz4p+Nr0N9bgeVgP03 BPPeyC89RrnE21q5OlwE12To+Lo0uO0gDS+HQdBPGl2vkXjcShZN7tjimtjxMyb0IHSr b95Q== 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 a15si1108191edr.470.2020.08.27.00.40.17; Thu, 27 Aug 2020 00:40:39 -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 S1728218AbgH0Hgo (ORCPT + 99 others); Thu, 27 Aug 2020 03:36:44 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39148 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbgH0Hgm (ORCPT ); Thu, 27 Aug 2020 03:36:42 -0400 Received: by mail-ot1-f67.google.com with SMTP id r8so3659478ota.6 for ; Thu, 27 Aug 2020 00:36:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bczqUQFB57ZFAWLvm+qps8KvfzclY1FoGAFfhuT5eN4=; b=JvGEWqEMWXcS+6OrXvVIRLsmCMsoouWipUzoeWmURTUGCCbquS0kVW53Ra/y7gAlXV 4MiI8wQOz/kQsaXLnAHoDuFV4CwLnOzAqJ4fpULIGxUb8RumEYayFWEBmaBy4x2ZXxar 8F8X0JG0XP99OerbNHGaUbd5T+l3mrtCY/Zzbvqj0Fn0DjpIVqnO555M0TnukOLXo3HK /F4AWh9urkseXZUTIiYI/PsAE5eavY2gDFJE9D1hH+F5QXZZ0nG3fXrW0P1bIBewxrgG KhLkp5BLSaL9biQv2YI3ghE+m5DCkET06x9X/HDmeapc5/ycSVcSfLgImX9sgnPSfgND DjoA== X-Gm-Message-State: AOAM531uTLWNvvZzKnHM/ZP1vr842y+77MoLxatSsMnfVmPhA0SHlF9p X6yUR0wCo36t6ci8f654HYYGKsRKRm2Lg40ydVa8XTTE X-Received: by 2002:a9d:1b62:: with SMTP id l89mr12121818otl.145.1598513801598; Thu, 27 Aug 2020 00:36:41 -0700 (PDT) MIME-Version: 1.0 References: <20200826185212.3139-1-grandmaster@al2klimov.de> In-Reply-To: <20200826185212.3139-1-grandmaster@al2klimov.de> From: Geert Uytterhoeven Date: Thu, 27 Aug 2020 09:36:30 +0200 Message-ID: Subject: Re: [PATCH v2] m68k: Replace HTTP links with HTTPS ones To: "Alexander A. Klimov" Cc: Joshua Thompson , linux-m68k , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 8:52 PM Alexander A. Klimov wrote: > 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 > --- > v2: Thrown out de facto broken links. > archive.org-ing is on my TODO list, but beyond this project's scope. Reviewed-by: Geert Uytterhoeven i.e. will queue in the m68k for-v5.10 branch. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds