diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2020-07-04 21:27:43 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-07-13 15:05:59 +0100 |
commit | 3593cd53962fa17e4eaaae8faa5c8f62ec7bbd5e (patch) | |
tree | cd39cc287844918a74920f7a67e46135ddc00e6c /drivers/iio/light | |
parent | 5a6b56de410c8c905bde4295ba8c3d75910aecea (diff) | |
download | linux-3593cd53962fa17e4eaaae8faa5c8f62ec7bbd5e.tar.gz linux-3593cd53962fa17e4eaaae8faa5c8f62ec7bbd5e.tar.bz2 linux-3593cd53962fa17e4eaaae8faa5c8f62ec7bbd5e.zip |
Replace HTTP links with HTTPS ones: drivers/iio
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 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>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r-- | drivers/iio/light/lv0104cs.c | 2 | ||||
-rw-r--r-- | drivers/iio/light/opt3001.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/lv0104cs.c b/drivers/iio/light/lv0104cs.c index c2a896bb0aac..c2aef88f4e63 100644 --- a/drivers/iio/light/lv0104cs.c +++ b/drivers/iio/light/lv0104cs.c @@ -7,7 +7,7 @@ * * 7-bit I2C slave address: 0x13 * - * Link to data sheet: http://www.onsemi.com/pub/Collateral/LV0104CS-D.PDF + * Link to data sheet: https://www.onsemi.com/pub/Collateral/LV0104CS-D.PDF */ #include <linux/kernel.h> diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index b02c497455f3..2d48d61909a4 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c @@ -2,7 +2,7 @@ /** * opt3001.c - Texas Instruments OPT3001 Light Sensor * - * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com + * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com * * Author: Andreas Dannenberg <dannenberg@ti.com> * Based on previous work from: Felipe Balbi <balbi@ti.com> |