Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1359808ybh; Mon, 13 Jul 2020 17:04:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRqcUlgqrvhjOdBKZhjE/GBOtq2fmJW6OtKhrVUrEUiB0/LPhmoAufQot17P9SxxDgXWS3 X-Received: by 2002:a17:906:391:: with SMTP id b17mr2179006eja.282.1594685097224; Mon, 13 Jul 2020 17:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594685097; cv=none; d=google.com; s=arc-20160816; b=qKe4s+Ldt3E/b+P+ZZI5vlzulLJK4ioXiTVFLlIfYkftSdNNgzncsJLfwLNQppuQcz OIRp5/TVcDu/7xWK5J4Ra7GrWIk7VpT13+UTZkw7uQGtqm2vhMT7Z7viGqsX5L9677cG UpYZOSendIVQ9VQgQCQmXnYlfe6PL1OyerIw5dq5y/ATJJ63vZpEv2JlnKTKDrOhVKn3 N5Av3+YwG691QIY3kXmwTTaPkqEHp7NgCFSFJ5DBzWNa/veaaTN8eowZHEGMabM7UlAu 75NhLrQb7hn3pPSjkHCH7S/GDAzTFiVfW+MSN3Hkg+HwVeBe+NPtc08fEfVwwY+K2Z48 2Dfg== 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:from:subject:cc:to:message-id:date; bh=Qo//fonEMby4a9IbCcTaYmWrgkwiqrKst3mY3mpLAnk=; b=0ZywWAqA7C88UvsYgqMtRZwvjOXWhQo1azikmAwCXU+eQWHz6SGy4M9UlWyhdJ09lS Y+cB/T2R9Xveq8l78Z51nX6i6DobOzXZwlWQxwVtQt3rWiV69GDy2DFo99UhkyR22YW0 KOafOD2aRsr+t4K3FdfnskdkfXNpFDxltW/MCX6z6b3p3s3+vOE/zx1DJbpZPV1thWf9 fIz2ViH10xju+OOJVuzbN2enA40CnQHZ3nDdSHLgY6N9RvbZWvL3Sgym/E957oKyvfHK sfSoWNogrlgn5cBFyfesU1ka3WF2zIWkDPNGWwAT8m8z2RzvnscGLGbxN9/Q4JxLxBBh zY2Q== 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 t2si9246546ejd.382.2020.07.13.17.04.34; Mon, 13 Jul 2020 17:04:57 -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 S1727036AbgGNACQ (ORCPT + 99 others); Mon, 13 Jul 2020 20:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbgGNACP (ORCPT ); Mon, 13 Jul 2020 20:02:15 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C500C061755; Mon, 13 Jul 2020 17:02:15 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 08DD11297FB21; Mon, 13 Jul 2020 17:02:14 -0700 (PDT) Date: Mon, 13 Jul 2020 17:02:13 -0700 (PDT) Message-Id: <20200713.170213.1137487343351400578.davem@davemloft.net> To: grandmaster@al2klimov.de Cc: 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] atm: Replace HTTP links with HTTPS ones From: David Miller In-Reply-To: <20200713102418.33201-1-grandmaster@al2klimov.de> References: <20200713102418.33201-1-grandmaster@al2klimov.de> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 13 Jul 2020 17:02:15 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Alexander A. Klimov" Date: Mon, 13 Jul 2020 12:24:18 +0200 > 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 Applied, thanks.