Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1086457ybg; Thu, 11 Jun 2020 00:06:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwn0Sy+8NlD+2p2huiTpUKdxOiRPOjJOtEJHUkBOmgGrvbrLsAd8Z2NmrM+fZuNmkPcwU5 X-Received: by 2002:a05:6402:b8a:: with SMTP id cf10mr5947576edb.138.1591859205916; Thu, 11 Jun 2020 00:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591859205; cv=none; d=google.com; s=arc-20160816; b=Ehc4JuAVE2pQrMPXfiBuzKYLsrkhSDvKYtSkGSQD5jz3k9y/AIY6ncM64kC+rpVTEO qd7GyOyXtrIlmpna34u7vUVHW/RhaoyvRh9GwIvaUTec6H18RqfRndoqUMud9ZCwjfiu 0r8jt7kdWguCE4Roem0xaIIgndWD2lGISm78T56hWDuTgd9GaZPoHRg0TLrvdSylJwXQ f5y0Ic7tGlhs5AZwrcl0h/590VNUgi7K55i5H1atgXioukmZYP1n/ltBR9LD5zAPzmWk Bi5WTgMO1Ng2tM2qJ2NO2xr1VXpLTYFbQyzfy9W+zm9QkW/RdZrMya2Wrc+pdGF8/m7a FZMA== 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 :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject; bh=gYuo6IEmd3jIgPKAPskpfITBNKdJoGRg73sXwGPKxOk=; b=uQ4Xa8pr/BxpolX8RB1vEv1V4CV/m+EVCLQB3KzX6TP8PNqfuXsQAXwqpZ2yPoOx3D 3pbiYxTssFkVaoZYJPxDoJOrBrJMMR4/8Sv7UjwbXHP6oe0QqIRnZKYIsv3fBtCvN1E0 OHE0IWzKrEc+fLoElES2Qqbd4NFOHHbQoA9HeOVcmxDv0A72/Nhyx65awn1FuB2Ax4OA aHzThelVO1eueJU4cWz3jR+6mKr6orT/PR0uViuWVx6PH3xhF6jMpoC3b06qSmbujZMk jQOOxoQMSa0VFYdwvF/ilsJXcBNDgfD3S9XHBa+EbYHz+Fqfw4W1rsfjnyPJF2/iTLh5 WlLA== 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 md12si1411296ejb.431.2020.06.11.00.06.22; Thu, 11 Jun 2020 00:06: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 S1726645AbgFKHBg (ORCPT + 99 others); Thu, 11 Jun 2020 03:01:36 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:59136 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbgFKHBg (ORCPT ); Thu, 11 Jun 2020 03:01:36 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 8EB87FD7E3; Thu, 11 Jun 2020 07:01:29 +0000 (UTC) Subject: Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/translations/it_IT To: Kees Cook Cc: Federico Vaga , Jonathan Corbet , Mauro Carvalho Chehab , David Sterba , Randy Dunlap , Theodore Ts'o , "Darrick J. Wong" , Pankaj Bharadiya , Jacob Huisman , =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= , Rob Herring , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Linus Torvalds References: <20200609201241.81518-1-grandmaster@al2klimov.de> <4235548.LvFx2qVVIh@harkonnen> <202006102009.CB14D7F@keescook> From: "Alexander A. Klimov" Message-ID: <8ee16c38-e28b-b4e6-ed30-55a59e216b49@al2klimov.de> Date: Thu, 11 Jun 2020 09:01:27 +0200 MIME-Version: 1.0 In-Reply-To: <202006102009.CB14D7F@keescook> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Authentication-Results: smtp.al2klimov.de; auth=pass smtp.auth=aklimov@al2klimov.de smtp.mailfrom=grandmaster@al2klimov.de X-Spamd-Bar: / Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 11.06.20 um 05:12 schrieb Kees Cook: > On Wed, Jun 10, 2020 at 08:11:39PM +0200, Alexander A. Klimov wrote: >> Am 10.06.20 um 10:57 schrieb Federico Vaga: >>> On Tuesday, June 9, 2020 10:12:41 PM CEST 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: >>>> For each line: >>>> If doesn't contain `\bxmlns\b`: >>>> For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`: >>>> If both the HTTP and HTTPS versions >>>> return 200 OK and serve the same content: >>>> Replace HTTP with HTTPS. > > Is this script somewhere we can read it? (It's easier usually to review > the code for bulk changes than the bulk changes themselves.) Is any of you familiar with Golang? @Maintainers Would any of you actually review like this? If yes, is the pseudo-code not enough? > >>>> >>>> Signed-off-by: Alexander A. Klimov >>>> --- >>>> .../translations/it_IT/admin-guide/README.rst | 2 +- >>>> .../translations/it_IT/doc-guide/parse-headers.rst | 2 +- >>>> .../translations/it_IT/doc-guide/sphinx.rst | 10 +++++----- >>>> .../translations/it_IT/process/2.Process.rst | 12 ++++++------ >>>> .../translations/it_IT/process/3.Early-stage.rst | 2 +- >>>> .../translations/it_IT/process/4.Coding.rst | 4 ++-- >>>> .../it_IT/process/7.AdvancedTopics.rst | 8 ++++---- >>>> .../translations/it_IT/process/8.Conclusion.rst | 14 +++++++------- >>>> .../translations/it_IT/process/adding-syscalls.rst | 4 ++-- >>>> .../translations/it_IT/process/changes.rst | 6 +++--- >>>> .../translations/it_IT/process/clang-format.rst | 2 +- >>>> .../translations/it_IT/process/coding-style.rst | 2 +- >>>> Documentation/translations/it_IT/process/howto.rst | 2 +- >>>> .../it_IT/process/maintainer-pgp-guide.rst | 2 +- >>>> .../it_IT/process/submitting-patches.rst | 4 ++-- >>>> .../it_IT/process/volatile-considered-harmful.rst | 4 ++-- >>>> 16 files changed, 40 insertions(+), 40 deletions(-) >>>> >>> >>> >>>> diff --git a/Documentation/translations/it_IT/doc-guide/sphinx.rst >>>> b/Documentation/translations/it_IT/doc-guide/sphinx.rst index >>>> f1ad4504b734..0aaeb0297661 100644 >>>> --- a/Documentation/translations/it_IT/doc-guide/sphinx.rst >>>> +++ b/Documentation/translations/it_IT/doc-guide/sphinx.rst >>>> @@ -14,7 +14,7 @@ Per generare la documentazione in HTML o PDF, usate >>>> comandi ``make htmldocs`` o ``make pdfdocs``. La documentazione così >>>> generata sarà disponibile nella cartella ``Documentation/output``. >>>> >>>> -.. _Sphinx: http://www.sphinx-doc.org/ >>>> +.. _Sphinx: https://www.sphinx-doc.org/ >>>> .. _reStructuredText: http://docutils.sourceforge.net/rst.html >>> >>> It is not part of the deterministic algorithm but you may consider this as >>> well > > Why did it not match? I didn't log that link-by-link. Maybe because I also didn't follow plain HTTP redirects while opening HTTPS links. Maybe it even matched, but was added after I made the changes. Anyway, I'll maybe cover it in round II. > >>> >>> -.. _reStructuredText: http://docutils.sourceforge.net/rst.html >>> +.. _reStructuredText: https://docutils.sourceforge.io/rst.html >>> >> I'll think about analyzing such almost-matches, extending the algo and >> supplying a second round of patches once all [1] of this round arrive in >> torvalds/master. >> >> [1]: >> >> ➜ linux git:(feature/https-links-3) ✗ git diff --shortstat >> 1963 files changed, 2882 insertions(+), 2882 deletions(-) >> ➜ linux git:(feature/https-links-3) ✗ > > Is there a reason to do this one language at a time instead of just > doing everything in one go? There are two reasons: * Jonathan said like theoretically you could give it all at once to Linus, but practically I'd not do that, please split by subsystem * Linus *didn't even respond* (at least I didn't receive anything) to my catch-them-all patch at all, not even like please not as .gz attachment or please split by subsystem >