diff options
| author | Alexander A. Klimov <[email protected]> | 2020-07-13 13:09:44 +0000 |
|---|---|---|
| committer | Gao Xiang <[email protected]> | 2020-08-03 13:04:29 +0000 |
| commit | 592e7cd00bb9d48742ff402b74b79244e4a765dd (patch) | |
| tree | 5b6ec3c892925b71ea2f9cae2ccae70494f31b89 /fs/erofs/utils.c | |
| parent | Linux 5.8-rc7 (diff) | |
| download | kernel-592e7cd00bb9d48742ff402b74b79244e4a765dd.tar.gz kernel-592e7cd00bb9d48742ff402b74b79244e4a765dd.zip | |
erofs: 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.
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Alexander A. Klimov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'fs/erofs/utils.c')
| -rw-r--r-- | fs/erofs/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/utils.c b/fs/erofs/utils.c index 52d0be10f1aa..ecb85b3d4013 100644 --- a/fs/erofs/utils.c +++ b/fs/erofs/utils.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2018 HUAWEI, Inc. - * http://www.huawei.com/ + * https://www.huawei.com/ * Created by Gao Xiang <[email protected]> */ #include "internal.h" |
