Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1193347ybh; Thu, 16 Jul 2020 05:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYI3cMwVFnlM/D8d8Jo6w9xgO4k2PAwxJiqu4jmqalEz/TIM5fYxifQxZ4ArhiDFM6RRoJ X-Received: by 2002:a17:906:d04c:: with SMTP id bo12mr3710882ejb.31.1594904220724; Thu, 16 Jul 2020 05:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594904220; cv=none; d=google.com; s=arc-20160816; b=RBHoJEtp8TvMS8t9d4Hx017+3rARM3Xy0/6+ZwujY4u/zEdR5C8IqXCCz5ssGNHpRC 5097+rwYQQ4QTu/Ftk5Bf0P4AZhUAzyyrvIPZ3MWPbCLTSwG2KeZ4MfQRqacguPKrqvY GVTidj1x4ofS5IPQNu5/Zr/40n2/7mBDdysk1VbO0XQPcrI7PlBiudZI4Nqd5Rw/N//q jn+4bKv+G87TNcq0H1gHGVAtGzrqKCuB9RzZTAx+kTkLj90VEUzbEiVENBwFFCnkgjkS k+oNcNtUGYefKyovQ9hiLqnDQ/+YqRhK1D3wpO4fRG0a/svI8H/NtracI0LSbsKETBG1 +35w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:to:from; bh=CNlb1g7r6unWfFjxpCKn+/2/B+JtmAqTxAOb8d0ez3Y=; b=X7bkB0iHdeiNIYlFDMSuiy80vXwVey4Nwr5fjzZUh3cJTuGZZ2yf+SNDSA11Gei0KW p/pyqhjjZxT6vMx/n9ECH5EO3QW7wnI8PSqAqpDMwZOJBvXjKAMxjlFUFdzGFMWvut8B TkooDcaO8ExRHNZkaJ9+vAsA/DMjnTHIZcJAXLwh59tQ/mGYfVI6AFwzjkvQjSylxGMu gCAnKmPhPBbBa463IVEp9GSrtU/fa3EfC+Sg6lr4XLB3JyKKYEXMXcnfR5ZFELM6T2Mz qFp9PKCXQDHCQQ4JIC9JhpoDS8vqezBKlMNbpIrWM6gyuJde7g5v0Zy+8hd7a6Ul8Ck0 Yn0w== 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 k9si3089241ejp.499.2020.07.16.05.56.38; Thu, 16 Jul 2020 05:57:00 -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 S1728707AbgGPM4J (ORCPT + 99 others); Thu, 16 Jul 2020 08:56:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728652AbgGPM4G (ORCPT ); Thu, 16 Jul 2020 08:56:06 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD44AC061755 for ; Thu, 16 Jul 2020 05:56:05 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4B6vPp1gQVz9sV6; Thu, 16 Jul 2020 22:55:57 +1000 (AEST) From: Michael Ellerman To: oss@buserror.net, linux-kernel@vger.kernel.org, mpe@ellerman.id.au, paulus@samba.org, linuxppc-dev@lists.ozlabs.org, "Alexander A. Klimov" , benh@kernel.crashing.org In-Reply-To: <20200713192656.37443-1-grandmaster@al2klimov.de> References: <20200713192656.37443-1-grandmaster@al2klimov.de> Subject: Re: [PATCH] powerpc/Kconfig: Replace HTTP links with HTTPS ones Message-Id: <159490401741.3805857.15601592351577773975.b4-ty@ellerman.id.au> Date: Thu, 16 Jul 2020 22:55:57 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jul 2020 21:26:56 +0200, 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. Applied to powerpc/next. [1/1] powerpc/Kconfig: Replace HTTP links with HTTPS ones https://git.kernel.org/powerpc/c/9a3e3dccbf4317d02d28f8f99a5d1ccce42f9922 cheers