Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp669471ybh; Wed, 15 Jul 2020 12:00:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfDfPSpcxqAUVQGXBDhLbOCS3zwpZOKFTTD/NNRDto1ujCmR/OE033e4qxIZCP0o72mi9R X-Received: by 2002:a17:907:2058:: with SMTP id pg24mr388830ejb.79.1594839641791; Wed, 15 Jul 2020 12:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594839641; cv=none; d=google.com; s=arc-20160816; b=EeudUP4FNGqegsAg3Jnu1IXxJMs+aV4xbVqZOyTfG2LeSqFVOHYIdJ+aDq1tIUFuN1 bGlXTlrykGdB2oEmEI6TUD7JjAQjPPQD2zMi4O4NGjxRcsVhSixODX4PNlFvinrXO5Pr FqUev0xnaShzaU0lI0oa0bwBjEnQjUjo2vZgK4KqUl6L6Ild3t2OLG1CYwIgNdDX7qjN lmMOxIeKFjOWAFflrvKBJkgDFf4XjbzQVX66OXBm3lCNKoUfqffszzzSHEj64f1wuEga 45W2rfXxvXAMN3R9+ck9suveClw1bQFDZbwm4QfJy2uC035NBywp2B+4ves+DuV0iqir TcXQ== 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=Yd6cVCJoNWTEtvbwkn0ZQfmRU79GoYyjCZOxra1HmBg=; b=cvKNlL06+JD3IAyxHfGag+duq0+/gB6G2PQkMJ64tYP0RiOWZyr60tG46JcKFfKPrk nuuugnU3VZM/FsSsS9IVZMlsQr8esJnQJlE0T2ejdVKjEYqJ53rgqLDVQWVwi4rTjtMa 4a+ZipqhRX+00voLR80ae/QNPtwqrRoxUIfQznm/6CMiYmyFIgdqMl9ks2Qx5KhnfnDc /WU3jeGjp+ry8yvSsvmWKv9jcpScu0s3MUkjnUF4K6Fe2XS5pnTEw3T0wRD0MzVuFUIz fnuXf2hYhGIpiRqvHVBY9HqkINgvHs+66Hsh+JWVMrc9JYhBC6nDyE2H0R6K+6G3AxRs fcPA== 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 x1si1694025ejj.109.2020.07.15.12.00.17; Wed, 15 Jul 2020 12:00:41 -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 S1726634AbgGOS56 (ORCPT + 99 others); Wed, 15 Jul 2020 14:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbgGOS56 (ORCPT ); Wed, 15 Jul 2020 14:57:58 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD06FC061755; Wed, 15 Jul 2020 11:57:57 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id C4B90BC0CB; Wed, 15 Jul 2020 18:57:52 +0000 (UTC) From: "Alexander A. Klimov" To: dvhart@infradead.org, andy@infradead.org, peter@piie.net, mika.westerberg@linux.intel.com, lee.jones@linaro.org, dmitry.torokhov@gmail.com, ayman.bagabas@gmail.com, masahiroy@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH v2] platform/x86: acerhdf: Replace HTTP links with HTTPS ones Date: Wed, 15 Jul 2020 20:57:44 +0200 Message-Id: <20200715185744.52335-1-grandmaster@al2klimov.de> In-Reply-To: References: 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 --- v2: Combined all two patches for acerhdf. drivers/platform/x86/Kconfig | 2 +- drivers/platform/x86/acerhdf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 0581a54cf562..1d96e07b2a02 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -140,7 +140,7 @@ config ACERHDF in the same node directory will tell you if it is "acerhdf". For more information about this driver see - + If you have an Acer Aspire One netbook, say Y or M here. diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index 4df7609b4aa9..a7a0b2e0ceb9 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c @@ -5,7 +5,7 @@ * as soon as the upper/lower threshold is reached. * * (C) 2009 - Peter Kaestle peter (a) piie.net - * http://piie.net + * https://piie.net * 2009 Borislav Petkov bp (a) alien8.de * * Inspired by and many thanks to: -- 2.27.0