Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2215844ybh; Fri, 17 Jul 2020 12:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwEfQsmopGMsPgE4vk2HOEH9uo5jDWag8awUD96ZylnWhFwNQqnnru/r1DfL/oGRQBby/P X-Received: by 2002:a17:906:da0f:: with SMTP id fi15mr9594605ejb.237.1595012708253; Fri, 17 Jul 2020 12:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595012708; cv=none; d=google.com; s=arc-20160816; b=z6o8ONKnFmnD4st5Bd9Hgevq2dbFnHfQMJr9N2WRwAxfVRABDyXZFHJwsynQxuvNaS vDd0xNqomd7mXTOZSbSFqgE6+dA7Txv9AGk80hcG24Q3dJaNcQ7L440fkQLGGf8saVtD bN5OG8HHzjLpujamJ8AIO3fikJhP3GZaY8aDFEBS3nw820q0F2ox+tdru55yVKrKGq2D O6m0MwnMgvBQ+SAR4jKf2LMEiOp9XaH6qpHpa5tpUAO2Egq+uRmh/qM4l5xFthubH2qd +8pAbDYwt5wMDIP4Hz4+0NFQ856GDLL7efTjvy4xMQnSDIUWi2l0M6lr4DjxZFM+V3rV BJaw== 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 :message-id:date:subject:cc:to:from; bh=DEb+4HCVu4+ItDK2jtXMlsYA73POZtpm9VQhi4igSuw=; b=yFjLh1gRfLIeJP1Sh7vyynqv0W2bkkpVwQAm5CwkelA3m28my2/rG37WTaKXR+ft1w cdrv+mzwzAySnV3F/oGg78A15jX/bOgQondllKTT2RFhOfp65dEA/t+7kcdtVzzV70bv H8sDB44DivBMG5Wde1XgNA74xzgC8HTQNi7YdP4G9gigLyLSsz/5mvnjps7msJ5g8Ibj qgEllPSwpyEHORWsW8O0tQPJRs59TwLlMspxOAxyZBRrNxD/aYTvVYvJ06NOUGJ4XQAN d/4x5J10GLaMnGZUZiRkiUR0w99aev9h8E3g1A0Rlh+B7kY//P85iAIrnvHDYcWUd9CG xnxw== 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 df7si6915181edb.462.2020.07.17.12.04.45; Fri, 17 Jul 2020 12:05:08 -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 S1728300AbgGQTEa (ORCPT + 99 others); Fri, 17 Jul 2020 15:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727821AbgGQTE3 (ORCPT ); Fri, 17 Jul 2020 15:04:29 -0400 Received: from smtp.al2klimov.de (smtp.al2klimov.de [IPv6:2a01:4f8:c0c:1465::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74815C0619D2 for ; Fri, 17 Jul 2020 12:04:28 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id 476C1BC065; Fri, 17 Jul 2020 19:04:26 +0000 (UTC) From: "Alexander A. Klimov" To: tomas.winkler@intel.com, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] samples: mei: Replace HTTP links with HTTPS ones Date: Fri, 17 Jul 2020 21:04:19 +0200 Message-Id: <20200717190419.86168-1-grandmaster@al2klimov.de> 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 --- Continuing my work started at 93431e0607e5. See also: git log --oneline '--author=Alexander A. Klimov ' v5.7..master If there are any URLs to be removed completely or at least not (just) HTTPSified: Just clearly say so and I'll *undo my change*. See also: https://lkml.org/lkml/2020/6/27/64 If there are any valid, but yet not changed URLs: See: https://lkml.org/lkml/2020/6/26/837 If you apply the patch, please let me know. samples/mei/mei-amt-version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/mei/mei-amt-version.c b/samples/mei/mei-amt-version.c index ad3e56042f96..8632f16073fc 100644 --- a/samples/mei/mei-amt-version.c +++ b/samples/mei/mei-amt-version.c @@ -29,7 +29,7 @@ * Contact Information: * Intel Corporation. * linux-mei@linux.intel.com - * http://www.intel.com + * https://www.intel.com * * BSD LICENSE * -- 2.27.0