Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1294819ybh; Mon, 13 Jul 2020 14:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPqCvCfoGzumkmyzfjyxWwKMIKFx5KPVkh5KPyWQS08zvt8hGHlt+i924q/oh1/B6SB9b/ X-Received: by 2002:a50:fa0c:: with SMTP id b12mr1446425edq.226.1594677343971; Mon, 13 Jul 2020 14:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594677343; cv=none; d=google.com; s=arc-20160816; b=rzQ9es2qt+9KiVsxFJRTAAVNa5JtBRmtP9sIxnafcB85LYLzIn4/XUeAY8wA2MgaEh PQZCyvTkHhUbiHhYUN16FuKYUonK06IBNtAwvT3X5vf6HtTHPAIvQobdyqeSkwadNwmm h+e4W3QxdJ5giPanw0HM3OsDp5ttmOlR4LEc/Yad9hIHVgo7hYoUIyPyOOLD562fLYAb VDyYmQQQit1pfRFws+CLKf9CcPRAA7qLO1kfSgKczCj3j/RNcvD3yMZwJM8c+etyyLO/ BDVDGJPaGL1n02v3PkYocXf7K6Z72jREkEdY3E0a0RHjwvB4irDE9aUjygMku0z2FrCf nLuA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SZmLa3K/pRDlATFLA8Mmv9riZaAh3VOZabopGrbpbV4=; b=irVfGxdZZRCyg5EVBZgutrZKHt68Y6QfFkLBp+GLSemRIzgnV0JZWbbz+z2y1hJhSA hYrTMBUwM/SVbato11IJ5lyzZdjz8Vj2tqEObDBZ/YjSPapU9aDlSOYMa/6+e0Q4xNYU mIvnc5sqLhJyqITNl4bEowFuxAIEFpr0ZVuuWZkzCsUcHfX1l/JPoqiuvTX6BvwsEzuT +OTWHL89sUmWEpumRLmrLMjxzTtm7DnmenMFY5+de84EVgon3JbOCE2CG7n52ZqnHfJD M2d7ECcrAK+24j93rKzSA2tR/lfcXI7pFgVpUXzz/rSWFR/lCkNCKBmb5e2ifTaNonky Wt3A== 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 y7si10463244edt.458.2020.07.13.14.55.20; Mon, 13 Jul 2020 14:55:43 -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 S1726517AbgGMVzQ (ORCPT + 99 others); Mon, 13 Jul 2020 17:55:16 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:47562 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbgGMVzQ (ORCPT ); Mon, 13 Jul 2020 17:55:16 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 28AF3BC097; Mon, 13 Jul 2020 21:55:12 +0000 (UTC) From: "Alexander A. Klimov" To: tony.luck@intel.com, fenghua.yu@intel.com, corbet@lwn.net, linux-ia64@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH v2] ia64: Replace HTTP links with HTTPS ones Date: Mon, 13 Jul 2020 23:55:06 +0200 Message-Id: <20200713215506.44327-1-grandmaster@al2klimov.de> In-Reply-To: <20200713083408.38154746@lwn.net> References: <20200713083408.38154746@lwn.net> 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 --- As you said I should not HTTPSify broken links... Documentation/ia64/xen.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ia64/xen.rst b/Documentation/ia64/xen.rst index 831339c74441..9da6abb02a2c 100644 --- a/Documentation/ia64/xen.rst +++ b/Documentation/ia64/xen.rst @@ -28,7 +28,7 @@ Getting and Building Xen and Dom0 # hg clone http://xenbits.xensource.com/ext/ia64/xen-unstable.hg # cd xen-unstable.hg - # hg clone http://xenbits.xensource.com/ext/ia64/linux-2.6.18-xen.hg + # hg clone https://xenbits.xensource.com/ext/ia64/linux-2.6.18-xen.hg 2. # make world -- 2.27.0