Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp980692ybh; Tue, 21 Jul 2020 12:41:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyITTVU3dyXGSysc21U/0DFXeKuN+3OYpJ46FqahAwsYFil095O9tckbk4Y/iRsSokCisbI X-Received: by 2002:a17:906:eb94:: with SMTP id mh20mr23571547ejb.209.1595360479844; Tue, 21 Jul 2020 12:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595360479; cv=none; d=google.com; s=arc-20160816; b=dokPtYMKpsWZxasrNKDJ5QIk3Tloxz2rcg37DdqzcIDQN1Ojtd7oEcU7jV/VjH6kQL LFUcDGQvA4grF22ZQHrxSIcLe04eKX8Nh/cpxIJ1oGxqrAdgL0WMz2tGj4rW93X8B5zZ EppqWtmxWMZYN7ECEMAujnuFRhR2BJos16ZSGRS7zOLvNlGapYbMrv/Ii1lk1+oBePBH 3Rn2EYC9/mBS0QDD4Wxf+uVNTiFsymAJA9e3lr8dhYO3M/RbVuJHdevNhNKGbqkxfo+9 s4ci6K3kx38X+9vbi6/P0U4xRTrW1UrN2RfpanCcOND+psdNmKU1oMzq82EwLIEWlok5 Rp6w== 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=DSXfc94gN9k+mw35ttZcx97lJ0fP9HDLMW42ydhITI0=; b=kJxQz06Rphi0MQIV1fFzwpQLf7f1ku4GpV46k/ZVgEqyYMQYYHrZ/00ys3KmUBio/N /SPLkf+JxZbqtVgjeyzQ6Kqzn3vH7rTbGGqt5/kh5b6PsYiW45+Vujvq9NUB5TTfwlDD Jts9BoXAdoGBXy+KGWtLzj/KVl26m75g5U5ryDkRoIiY5rLOcIEGiJgo6sTqVgytPzy7 RC0ru54tZ9aiOAkLQLD4ubVTzxl6BLfGm/qR8t+4t3rTBqvgePk8VLWZEAAVmSRRQ6YL gZ+MCqE5iy0f4/GTTo4TRX2nwjdj+i9UCff4jx+V/ddIb5Amj8uGW0oz9g/CXfDCOx1w lzIw== 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 k3si12820058ejk.32.2020.07.21.12.40.50; Tue, 21 Jul 2020 12:41:19 -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 S1730959AbgGUTiQ (ORCPT + 99 others); Tue, 21 Jul 2020 15:38:16 -0400 Received: from smtp.al2klimov.de ([78.46.175.9]:50286 "EHLO smtp.al2klimov.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729928AbgGUTiQ (ORCPT ); Tue, 21 Jul 2020 15:38:16 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.al2klimov.de (Postfix) with ESMTPA id BE6A4BC17B; Tue, 21 Jul 2020 19:38:12 +0000 (UTC) From: "Alexander A. Klimov" To: abbotti@mev.co.uk, hsweeten@visionengravers.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: "Alexander A. Klimov" Subject: [PATCH] staging: comedi: pcm: Replace HTTP links with HTTPS ones Date: Tue, 21 Jul 2020 21:38:06 +0200 Message-Id: <20200721193806.68010-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 (Actually letting a shell for loop submit all this stuff for me.) 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. Sorry again to all maintainers who complained about subject lines. Now I realized that you want an actually perfect prefixes, not just subsystem ones. I tried my best... And yes, *I could* (at least half-)automate it. Impossible is nothing! :) drivers/staging/comedi/drivers/pcm3724.c | 2 +- drivers/staging/comedi/drivers/pcmad.c | 2 +- drivers/staging/comedi/drivers/pcmda12.c | 2 +- drivers/staging/comedi/drivers/pcmmio.c | 2 +- drivers/staging/comedi/drivers/pcmuio.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcm3724.c b/drivers/staging/comedi/drivers/pcm3724.c index 5779e005c0cb..0cb1ad060402 100644 --- a/drivers/staging/comedi/drivers/pcm3724.c +++ b/drivers/staging/comedi/drivers/pcm3724.c @@ -222,6 +222,6 @@ static struct comedi_driver pcm3724_driver = { }; module_comedi_driver(pcm3724_driver); -MODULE_AUTHOR("Comedi http://www.comedi.org"); +MODULE_AUTHOR("Comedi https://www.comedi.org"); MODULE_DESCRIPTION("Comedi driver for Advantech PCM-3724 Digital I/O board"); MODULE_LICENSE("GPL"); diff --git a/drivers/staging/comedi/drivers/pcmad.c b/drivers/staging/comedi/drivers/pcmad.c index fe5449bb1716..eec89a0afb2f 100644 --- a/drivers/staging/comedi/drivers/pcmad.c +++ b/drivers/staging/comedi/drivers/pcmad.c @@ -144,6 +144,6 @@ static struct comedi_driver pcmad_driver = { }; module_comedi_driver(pcmad_driver); -MODULE_AUTHOR("Comedi http://www.comedi.org"); +MODULE_AUTHOR("Comedi https://www.comedi.org"); MODULE_DESCRIPTION("Comedi low-level driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c index 33e463b193a1..14ab1f0d1e9f 100644 --- a/drivers/staging/comedi/drivers/pcmda12.c +++ b/drivers/staging/comedi/drivers/pcmda12.c @@ -160,6 +160,6 @@ static struct comedi_driver pcmda12_driver = { }; module_comedi_driver(pcmda12_driver); -MODULE_AUTHOR("Comedi http://www.comedi.org"); +MODULE_AUTHOR("Comedi https://www.comedi.org"); MODULE_DESCRIPTION("Comedi low-level driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/staging/comedi/drivers/pcmmio.c b/drivers/staging/comedi/drivers/pcmmio.c index 72af1776f785..24a9568d3378 100644 --- a/drivers/staging/comedi/drivers/pcmmio.c +++ b/drivers/staging/comedi/drivers/pcmmio.c @@ -772,6 +772,6 @@ static struct comedi_driver pcmmio_driver = { }; module_comedi_driver(pcmmio_driver); -MODULE_AUTHOR("Comedi http://www.comedi.org"); +MODULE_AUTHOR("Comedi https://www.comedi.org"); MODULE_DESCRIPTION("Comedi driver for Winsystems PCM-MIO PC/104 board"); MODULE_LICENSE("GPL"); diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index 743fb226e2e4..7e1fc6ffb48c 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -619,6 +619,6 @@ static struct comedi_driver pcmuio_driver = { }; module_comedi_driver(pcmuio_driver); -MODULE_AUTHOR("Comedi http://www.comedi.org"); +MODULE_AUTHOR("Comedi https://www.comedi.org"); MODULE_DESCRIPTION("Comedi low-level driver"); MODULE_LICENSE("GPL"); -- 2.27.0