Skip to content

Commit

Permalink
watchdog: Replace HTTP links with HTTPS ones
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Acked-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
Al2Klimov authored and Wim Van Sebroeck committed Aug 5, 2020
1 parent d821ab2 commit 2ab77a3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/watchdog/davinci-wdt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/dw_wdt.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/nv_tco.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Based off i8xx_tco.c:
* (c) Copyright 2000 kernel concepts <[email protected]>, All Rights
* Reserved.
* http://www.kernelconcepts.de
* https://www.kernelconcepts.de
*
* TCO timer driver for NV chipsets
* based on softdog.c by Alan Cox <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/nv_tco.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* (c) Copyright 2000 kernel concepts <[email protected]>, 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
Expand Down
2 changes: 1 addition & 1 deletion drivers/watchdog/sp5100_tco.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Based on i8xx_tco.c:
* (c) Copyright 2000 kernel concepts <[email protected]>, 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
Expand Down

0 comments on commit 2ab77a3

Please sign in to comment.