Skip to contentSkip to conversation

uio: Replace HTTP links with HTTPS ones

PATCH New Alexander A. Klimov 1 participant 1 message Jul 13, 2020 Userspace I/O (UIO)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uio: Replace HTTP links with HTTPS ones

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.

---
Continuing my work started at 93431e0607e5.
See also: git log --oneline '--author=Alexander A. Klimov <[email protected]>' 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/uio/Kconfig     | 6 +++---
 drivers/uio/uio_netx.c  | 2 +-
 drivers/uio/uio_pruss.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/uio/Kconfig +3 -3
index 202ee81cfc2b..cdad8dc66b5e 100644
@@ -81,7 +81,7 @@ config UIO_SERCOS3
 	  available for download from the Automata GmbH web site.
 
 	  Automata GmbH:        http://www.automataweb.com
-	  Sercos III interface: http://www.sercos.com
+	  Sercos III interface: https://www.sercos.com
 
 	  If you compile this as a module, it will be called uio_sercos3.
 
@@ -100,7 +100,7 @@ config UIO_NETX
 	help
 	  Driver for Hilscher NetX based fieldbus cards (cifX, comX).
 	  This driver requires a userspace component that comes with the card
-	  or is available from Hilscher (http://www.hilscher.com).
+	  or is available from Hilscher (https://www.hilscher.com).
 
 	  To compile this driver as a module, choose M here; the module
 	  will be called uio_netx.
@@ -123,7 +123,7 @@ config UIO_FSL_ELBC_GPCM_NETX5152
 	  together with the userspace netX stack from Hilscher.
 
 	  Information about this hardware can be found at:
-	  http://www.hilscher.com/netx
+	  https://www.hilscher.com/netx
 
 config UIO_PRUSS
 	tristate "Texas Instruments PRUSS driver"
drivers/uio/uio_netx.c +1 -1
index 9ae29ffde410..3d5a92daa0b1 100644
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
  * UIO driver for Hilscher NetX based fieldbus cards (cifX, comX).
- * See http://www.hilscher.com for details.
+ * See https://www.hilscher.com for details.
  *
  * (C) 2007 Hans J. Koch <[email protected]>
  * (C) 2008 Manuel Traut <[email protected]>
drivers/uio/uio_pruss.c +1 -1
index 1cc175d3c25c..64e5dfa92a0d 100644
@@ -4,7 +4,7 @@
  * This driver exports PRUSS host event out interrupts and PRUSS, L3 RAM,
  * and DDR RAM to user space for applications interacting with PRUSS firmware
  *
- * Copyright (C) 2010-11 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2010-11 Texas Instruments Incorporated - https://www.ti.com/
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
Signature · 1 line
2.27.0