Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1369722ybh; Mon, 13 Jul 2020 17:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzkKOrqslB0YkAu6LokFHsu8RkkFEWx91Yc77KikX3ctN+qTGYHJtIKLbdq9tMLkfsAZVZ X-Received: by 2002:a05:6402:359:: with SMTP id r25mr1860572edw.177.1594686398834; Mon, 13 Jul 2020 17:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594686398; cv=none; d=google.com; s=arc-20160816; b=fUza0iIYBoRGvSTCn+7XH7gkhFOCAG6HVE+ZJvHdJU8uPBY7O9ZOhNaMgJCmuqy+Q4 JJuDfBP3sekG2l6MNxBwvEwswLkxODEPbKRaIK4NcZOK2FusYZUU0goqKn9w8h4j0ZVh QoqjIPzsajFKZ2wg6SZEUaTlxNoJ5RJzB2x1zCI37VYrbxdBI3mVpxTA0ZfsYHr7v0nW tMLTnqgBIDnhGuOwCnM7vXupYJYk9NiA8r7oS1sQ9EsYUXATc9fPKoFV0Y3qpBBP6pTK CrgifL2nNVZe2iIO5jDOTE8bGFxbj6Nay34BI0JC8UvsVWmZxSvm65L7WktcPynVg6rb eSjg== 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=j6sTqAmzDx8sB1BPLsPULna4GpqA2sM0lQ7JBAzif5Y=; b=kPoNmsg/Cs/BOYvEnMwXD0eCLbfQerh/EnK3TT6l0Ta1pvAsiSAcA5dWpiv7J1jvNp q2cevduK8GuhHhpfshVCRWqPExZzAk71cM+iVKFL5aUlck+Ljz0/FsMekyzeaycQKPni nk1+rt/TRUqhZ16Duc1VezMgLFXHuFl2/fXc+5VxuXxu7fTySaOVQXn2I8+Mb5nFCSqe YxL+6MIAxTHM6Uty3wZ5HAUk7IM8uSoWmvPnPg6Xy2szWadsflsivtzmM45fhqylt+/J sfzgvWXPPq1em1gga6Tws8owXafQjRUsu1P6oWHVtNMSjJ0JtJiHm1a1N+q1o49eh72y 1zUg== 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 q26si9294036ejc.433.2020.07.13.17.26.15; Mon, 13 Jul 2020 17:26:38 -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 S1726970AbgGNAZu (ORCPT + 99 others); Mon, 13 Jul 2020 20:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgGNAZt (ORCPT ); Mon, 13 Jul 2020 20:25:49 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC415C061755; Mon, 13 Jul 2020 17:25:49 -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 6618F1298320B; Mon, 13 Jul 2020 17:25:49 -0700 (PDT) Date: Mon, 13 Jul 2020 17:25:48 -0700 (PDT) Message-Id: <20200713.172548.1750892409418053803.davem@davemloft.net> To: grandmaster@al2klimov.de Cc: isdn@linux-pingi.de, gregkh@linuxfoundation.org, arnd@arndb.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] isdn/capi: Replace HTTP links with HTTPS ones From: David Miller In-Reply-To: <20200713143054.34978-1-grandmaster@al2klimov.de> References: <20200713143054.34978-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:25:49 -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 16:30:54 +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.