netfilter: Replace HTTP links with HTTPS ones
Subsystems (5)
PATCH 1/1 netfilter: 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.
---
Continuing my work started at 93431e0607e5.
See also: git log --oneline '--author=Alexander A. Klimov <[email protected]>' v5.7..master (Actually letting a shell for loop submit all this stuff for me.)
If there are any URLs to be removed completely
or at least not (just) HTTPSified:
Just clearly say so and I'll *undo my change*.
See also: https://lkml.org/lkml/2020/6/27/64
If there are any valid, but yet not changed URLs:
See: https://lkml.org/lkml/2020/6/26/837
If you apply the patch, please let me know.
Sorry again to all maintainers who complained about subject lines. Now I realized that you want an actually perfect prefixes, not just subsystem ones.
I tried my best...
And yes, *I could* (at least half-)automate it. Impossible is nothing! :)
include/uapi/linux/netfilter/xt_connmark.h | 2 +- net/decnet/netfilter/dn_rtmsg.c | 2 +- net/netfilter/Kconfig | 2 +- net/netfilter/nfnetlink_acct.c | 2 +- net/netfilter/nft_set_pipapo.c | 4 ++-- net/netfilter/xt_connmark.c | 2 +- net/netfilter/xt_nfacct.c | 2 +- net/netfilter/xt_time.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-)
include/uapi/linux/netfilter/xt_connmark.h +1 -1
@@ -4,7 +4,7 @@#include <linux/types.h> -/* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> +/* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com> * by Henrik Nordstrom <[email protected]> * * This program is free software; you can redistribute it and/or modify
net/decnet/netfilter/dn_rtmsg.c +1 -1
@@ -6,7 +6,7 @@* * DECnet Routing Message Grabulator * -* (C) 2000 ChyGwyn Limited - http://www.chygwyn.com/ +* (C) 2000 ChyGwyn Limited - https://www.chygwyn.com/ * * Author: Steven Whitehouse <[email protected]> */
net/netfilter/Kconfig +1 -1
@@ -447,7 +447,7 @@ config NF_TABLES replace the existing {ip,ip6,arp,eb}_tables infrastructure. It provides a pseudo-state machine with an extensible instruction-set (also known as expressions) that the userspace 'nft' utility - (http://www.netfilter.org/projects/nftables) uses to build the + (https://www.netfilter.org/projects/nftables) uses to build the rule-set. It also comes with the generic set infrastructure that allows you to construct mappings between matchings and actions for performance lookups.
net/netfilter/nfnetlink_acct.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * (C) 2011 Pablo Neira Ayuso <[email protected]> -* (C) 2011 Intra2net AG <http://www.intra2net.com> +* (C) 2011 Intra2net AG <https://www.intra2net.com> */ #include <linux/init.h> #include <linux/module.h>
net/netfilter/nft_set_pipapo.c +2 -2
@@ -312,7 +312,7 @@* Jay Ligatti, Josh Kuhn, and Chris Gage. * Proceedings of the IEEE International Conference on Computer * Communication Networks (ICCCN), August 2010. -* http://www.cse.usf.edu/~ligatti/papers/grouper-conf.pdf +* https://www.cse.usf.edu/~ligatti/papers/grouper-conf.pdf * * [Rottenstreich 2010] * Worst-Case TCAM Rule Expansion
@@ -325,7 +325,7 @@* Kirill Kogan, Sergey Nikolenko, Ori Rottenstreich, William Culhane, * and Patrick Eugster. * Proceedings of the 2014 ACM conference on SIGCOMM, August 2014. -* http://www.sigcomm.org/sites/default/files/ccr/papers/2014/August/2619239-2626294.pdf +* https://www.sigcomm.org/sites/default/files/ccr/papers/2014/August/2619239-2626294.pdf */ #include <linux/kernel.h>
net/netfilter/xt_connmark.c +1 -1
@@ -2,7 +2,7 @@/* * xt_connmark - Netfilter module to operate on connection marks * -* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> +* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com> * by Henrik Nordstrom <[email protected]> * Copyright © CC Computer Consultants GmbH, 2007 - 2008 * Jan Engelhardt <[email protected]>
net/netfilter/xt_nfacct.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * (C) 2011 Pablo Neira Ayuso <[email protected]> -* (C) 2011 Intra2net AG <http://www.intra2net.com> +* (C) 2011 Intra2net AG <https://www.intra2net.com> */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
net/netfilter/xt_time.c +1 -1
@@ -5,7 +5,7 @@* based on ipt_time by Fabrice MARIE <[email protected]> * This is a module which is used for time matching * It is using some modified code from dietlibc (localtime() function) -* that you can find at http://www.fefe.de/dietlibc/ +* that you can find at https://www.fefe.de/dietlibc/ * This file is distributed under the terms of the GNU General Public * License (GPL). Copies of the GPL can be obtained from gnu.org/gpl. */
Signature · 1 line
2.27.0
Pablo Neira Ayuso
maintainerQuoted 3 lines · Alexander A. Klimov
Rationale:
Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate.
LGTM.
Can you squash this patch into this?
netfilter: xtables: Replace HTTP links with HTTPS ones
Probably better if this can be done for the entire netfilter tree in one single patch.
Thanks.
PATCH v2 1/1 netfilter: 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.
---
v2: Included other netfilter patch.
include/uapi/linux/netfilter/xt_connmark.h | 2 +- net/decnet/netfilter/dn_rtmsg.c | 2 +- net/netfilter/Kconfig | 2 +- net/netfilter/nfnetlink_acct.c | 2 +- net/netfilter/nft_set_pipapo.c | 4 ++-- net/netfilter/xt_CONNSECMARK.c | 2 +- net/netfilter/xt_connmark.c | 2 +- net/netfilter/xt_nfacct.c | 2 +- net/netfilter/xt_time.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-)
include/uapi/linux/netfilter/xt_connmark.h +1 -1
@@ -4,7 +4,7 @@#include <linux/types.h> -/* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> +/* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com> * by Henrik Nordstrom <[email protected]> * * This program is free software; you can redistribute it and/or modify
net/decnet/netfilter/dn_rtmsg.c +1 -1
@@ -6,7 +6,7 @@* * DECnet Routing Message Grabulator * -* (C) 2000 ChyGwyn Limited - http://www.chygwyn.com/ +* (C) 2000 ChyGwyn Limited - https://www.chygwyn.com/ * * Author: Steven Whitehouse <[email protected]> */
net/netfilter/Kconfig +1 -1
@@ -447,7 +447,7 @@ config NF_TABLES replace the existing {ip,ip6,arp,eb}_tables infrastructure. It provides a pseudo-state machine with an extensible instruction-set (also known as expressions) that the userspace 'nft' utility - (http://www.netfilter.org/projects/nftables) uses to build the + (https://www.netfilter.org/projects/nftables) uses to build the rule-set. It also comes with the generic set infrastructure that allows you to construct mappings between matchings and actions for performance lookups.
net/netfilter/nfnetlink_acct.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * (C) 2011 Pablo Neira Ayuso <[email protected]> -* (C) 2011 Intra2net AG <http://www.intra2net.com> +* (C) 2011 Intra2net AG <https://www.intra2net.com> */ #include <linux/init.h> #include <linux/module.h>
net/netfilter/nft_set_pipapo.c +2 -2
@@ -312,7 +312,7 @@* Jay Ligatti, Josh Kuhn, and Chris Gage. * Proceedings of the IEEE International Conference on Computer * Communication Networks (ICCCN), August 2010. -* http://www.cse.usf.edu/~ligatti/papers/grouper-conf.pdf +* https://www.cse.usf.edu/~ligatti/papers/grouper-conf.pdf * * [Rottenstreich 2010] * Worst-Case TCAM Rule Expansion
@@ -325,7 +325,7 @@* Kirill Kogan, Sergey Nikolenko, Ori Rottenstreich, William Culhane, * and Patrick Eugster. * Proceedings of the 2014 ACM conference on SIGCOMM, August 2014. -* http://www.sigcomm.org/sites/default/files/ccr/papers/2014/August/2619239-2626294.pdf +* https://www.sigcomm.org/sites/default/files/ccr/papers/2014/August/2619239-2626294.pdf */ #include <linux/kernel.h>
net/netfilter/xt_CONNSECMARK.c +1 -1
@@ -6,7 +6,7 @@* with the SECMARK target and state match. * * Based somewhat on CONNMARK: -* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> +* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com> * by Henrik Nordstrom <[email protected]> * * (C) 2006,2008 Red Hat, Inc., James Morris <[email protected]>
net/netfilter/xt_connmark.c +1 -1
@@ -2,7 +2,7 @@/* * xt_connmark - Netfilter module to operate on connection marks * -* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> +* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com> * by Henrik Nordstrom <[email protected]> * Copyright © CC Computer Consultants GmbH, 2007 - 2008 * Jan Engelhardt <[email protected]>
net/netfilter/xt_nfacct.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0-or-later /* * (C) 2011 Pablo Neira Ayuso <[email protected]> -* (C) 2011 Intra2net AG <http://www.intra2net.com> +* (C) 2011 Intra2net AG <https://www.intra2net.com> */ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
net/netfilter/xt_time.c +1 -1
@@ -5,7 +5,7 @@* based on ipt_time by Fabrice MARIE <[email protected]> * This is a module which is used for time matching * It is using some modified code from dietlibc (localtime() function) -* that you can find at http://www.fefe.de/dietlibc/ +* that you can find at https://www.fefe.de/dietlibc/ * This file is distributed under the terms of the GNU General Public * License (GPL). Copies of the GPL can be obtained from gnu.org/gpl. */
Signature · 1 line
2.27.0
Quoted 3 lines · Alexander A. Klimov
Rationale:
Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate.
Applied.