Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp275413ybh; Sat, 18 Jul 2020 03:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKg8FvvBCK+Dy+LHsRIVSKGTjY1wzAP0Yq2K5uxkP+d0W4iof2UUF90QWC774yy2emHLyK X-Received: by 2002:a17:906:57c5:: with SMTP id u5mr11945825ejr.311.1595068797069; Sat, 18 Jul 2020 03:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595068797; cv=none; d=google.com; s=arc-20160816; b=FrFuKCdQHuhJgw8SCborlHyv/mgqZY4r730zPlMA6/BuLKMHnbjqtKaVYtTEtGq/1i O1Kui9E1q7olBj8utvT7dquiHU7W9qBQZrsDNfY48ncwyCtIeDbIZon/ZsCMFuBwb3tB OT4MGzEH2AuV6ZrEL4oFMPwXB15iVjMRKrS/matItMnI4egpmv1/tzSuxZvuhXFwXZ8g dHeelhQIoan03mSWV6+P5OGwAh04OzMTYMM3li+IItkg5r5ARhEfojoWC8somMnfG7Vl fC3Zfj9hs9r+s75tosvxgW9oauULhTP495cW0fCTdn80Z1qGNUUmwlFuU/Wxn89G9tBl nMIw== 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 :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=16r13AsUKgtr4x8zOoJBHBbQRChiLDbNWEkbsWAQXtA=; b=qgG52uVFoMU+UJwxAem5QsslvSDC6TFq2INpo9dPzmQcGSF1OoypyVtP25jqPBoA8n ew4Fu/J3ZNtqMtGdtP5EvhTwyHE61MT480c5sAq5qYLPXwQGsQHNfDAkhnoFEaR/581m jUGFh5alLDmt2JQOahnxV66OU4SnlKH8aaqqczHMGiZhfBk+c9h/fx2ao8dHsV+Udw5N i5tuWLqiXghWrgVVb8z0sJumMkIMSiEAWG5uuBufKcGpE0+A6D/UdA0jRBg4a2gs2E0F ZnGH5uY8HShuCqpm/P2kOLvvgHGny9hhuBHhHy2NG8u6+hbAYWu2p+UruyGGUte5uU/7 pBQw== 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 x7si6733024ede.597.2020.07.18.03.39.34; Sat, 18 Jul 2020 03:39: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 S1726882AbgGRKim (ORCPT + 99 others); Sat, 18 Jul 2020 06:38:42 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42797 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbgGRKil (ORCPT ); Sat, 18 Jul 2020 06:38:41 -0400 X-Originating-IP: 82.255.60.242 Received: from classic (lns-bzn-39-82-255-60-242.adsl.proxad.net [82.255.60.242]) (Authenticated sender: hadess@hadess.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id DF9991C0002; Sat, 18 Jul 2020 10:38:36 +0000 (UTC) Message-ID: Subject: Re: [PATCH] HID: udraw-ps3: Replace HTTP links with HTTPS ones From: Bastien Nocera To: "Alexander A. Klimov" , jikos@kernel.org, benjamin.tissoires@redhat.com, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, linux-input@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Sat, 18 Jul 2020 12:38:35 +0200 In-Reply-To: <20200718103344.3407-1-grandmaster@al2klimov.de> References: <20200718103344.3407-1-grandmaster@al2klimov.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-07-18 at 12:33 +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. > > Signed-off-by: Alexander A. Klimov Looks good! Acked-by: Bastien Nocera