Skip to content

Commit 592e7cd

Browse files
Al2KlimovGao Xiang
authored andcommitted
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 <hsiangkao@redhat.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de> Link: https://lore.kernel.org/r/20200713130944.34419-1-grandmaster@al2klimov.de Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
1 parent 92ed301 commit 592e7cd

16 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎fs/erofs/compress.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22
/*
33
* Copyright (C) 2019 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#ifndef __EROFS_FS_COMPRESS_H

‎fs/erofs/data.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2017-2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include "internal.h"

‎fs/erofs/decompressor.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2019 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include "compress.h"

‎fs/erofs/dir.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2017-2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include "internal.h"

‎fs/erofs/erofs_fs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* EROFS (Enhanced ROM File System) on-disk format definition
44
*
55
* Copyright (C) 2017-2018 HUAWEI, Inc.
6-
* http://www.huawei.com/
6+
* https://www.huawei.com/
77
* Created by Gao Xiang <gaoxiang25@huawei.com>
88
*/
99
#ifndef __EROFS_FS_H

‎fs/erofs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2017-2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include "xattr.h"

‎fs/erofs/internal.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22
/*
33
* Copyright (C) 2017-2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#ifndef __EROFS_INTERNAL_H

‎fs/erofs/namei.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2017-2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include "xattr.h"

‎fs/erofs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2017-2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include <linux/module.h>

‎fs/erofs/utils.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Copyright (C) 2018 HUAWEI, Inc.
4-
* http://www.huawei.com/
4+
* https://www.huawei.com/
55
* Created by Gao Xiang <gaoxiang25@huawei.com>
66
*/
77
#include "internal.h"

0 commit comments

Comments
 (0)