watchdog: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Mon, 13 Jul 2020 20:58:21 +0000 (22:58 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:43:01 +0000 (18:43 +0200)
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 <grandmaster@al2klimov.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200713205821.38223-1-grandmaster@al2klimov.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Documentation/devicetree/bindings/watchdog/davinci-wdt.txt
drivers/watchdog/Kconfig
drivers/watchdog/dw_wdt.c
drivers/watchdog/nv_tco.c
drivers/watchdog/nv_tco.h
drivers/watchdog/sp5100_tco.c

index e60b9a13bdcbd5887078e110280dffe5e39ba5e5..aa10b8ec36e2593df1230aba9fe5740868968caf 100644 (file)
@@ -11,8 +11,8 @@ Optional properties:
           See clock-bindings.txt
 
 Documentation:
-Davinci DM646x - http://www.ti.com/lit/ug/spruer5b/spruer5b.pdf
-Keystone - http://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf
+Davinci DM646x - https://www.ti.com/lit/ug/spruer5b/spruer5b.pdf
+Keystone - https://www.ti.com/lit/ug/sprugv5a/sprugv5a.pdf
 
 Examples:
 
index 4f4687c46d38e5b2300e10c12b625d7b18c691b9..ab7aad5a1e6963a030e37a0bdb58d9e9b89de4b3 100644 (file)
@@ -1027,7 +1027,7 @@ config ADVANTECH_WDT
          If you are configuring a Linux kernel for the Advantech single-board
          computer, say `Y' here to support its built-in watchdog timer
          feature. More information can be found at
-         <http://www.advantech.com.tw/products/>
+         <https://www.advantech.com.tw/products/>
 
 config ALIM1535_WDT
        tristate "ALi M1535 PMU Watchdog Timer"
index 4fec2c6a3c01b3e9cbd0237374c21a2e774b2368..32d0e1781e63c4ec5535b383d0c5647b1aa3b5d3 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright 2010-2011 Picochip Ltd., Jamie Iles
- * http://www.picochip.com
+ * https://www.picochip.com
  *
  * This file implements a driver for the Synopsys DesignWare watchdog device
  * in the many subsystems. The watchdog has 16 different timeout periods
index d15ad8583a5921c2ac1e871be88f414c4413fbe0..f6902a337422767ec4f8a7d844532d9b5eec89ae 100644 (file)
@@ -7,7 +7,7 @@
  *     Based off i8xx_tco.c:
  *     (c) Copyright 2000 kernel concepts <nils@kernelconcepts.de>, All Rights
  *     Reserved.
- *                             http://www.kernelconcepts.de
+ *                             https://www.kernelconcepts.de
  *
  *     TCO timer driver for NV chipsets
  *     based on softdog.c by Alan Cox <alan@redhat.com>
index d325e528010f9b5e6393a8c7cd51aa1c61fc2779..c65f82588386509863541554b3d9c1d24f04e77c 100644 (file)
@@ -9,7 +9,7 @@
  *
  *     (c) Copyright 2000 kernel concepts <nils@kernelconcepts.de>, All Rights
  *     Reserved.
- *                             http://www.kernelconcepts.de
+ *                             https://www.kernelconcepts.de
  *
  *     Neither kernel concepts nor Nils Faerber admit liability nor provide
  *     warranty for any of this software. This material is provided
index 93bd302ae7c5d054063d339b090dd75cd692fbde..85e9664318c9e53128cdad028466d36e585f0418 100644 (file)
@@ -7,7 +7,7 @@
  *     Based on i8xx_tco.c:
  *     (c) Copyright 2000 kernel concepts <nils@kernelconcepts.de>, All Rights
  *     Reserved.
- *                             http://www.kernelconcepts.de
+ *                             https://www.kernelconcepts.de
  *
  *     See AMD Publication 43009 "AMD SB700/710/750 Register Reference Guide",
  *         AMD Publication 45482 "AMD SB800-Series Southbridges Register