Commit 50935339 authored by Alexander A. Klimov's avatar Alexander A. Klimov Committed by Pablo Neira Ayuso

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.
Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 954d8297
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <linux/types.h> #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 <hno@marasystems.com> * by Henrik Nordstrom <hno@marasystems.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* DECnet Routing Message Grabulator * DECnet Routing Message Grabulator
* *
* (C) 2000 ChyGwyn Limited - http://www.chygwyn.com/ * (C) 2000 ChyGwyn Limited - https://www.chygwyn.com/
* *
* Author: Steven Whitehouse <steve@chygwyn.com> * Author: Steven Whitehouse <steve@chygwyn.com>
*/ */
......
...@@ -447,7 +447,7 @@ config NF_TABLES ...@@ -447,7 +447,7 @@ config NF_TABLES
replace the existing {ip,ip6,arp,eb}_tables infrastructure. It replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
provides a pseudo-state machine with an extensible instruction-set provides a pseudo-state machine with an extensible instruction-set
(also known as expressions) that the userspace 'nft' utility (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 rule-set. It also comes with the generic set infrastructure that
allows you to construct mappings between matchings and actions allows you to construct mappings between matchings and actions
for performance lookups. for performance lookups.
......
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
/* /*
* (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org> * (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org>
* (C) 2011 Intra2net AG <http://www.intra2net.com> * (C) 2011 Intra2net AG <https://www.intra2net.com>
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
* Jay Ligatti, Josh Kuhn, and Chris Gage. * Jay Ligatti, Josh Kuhn, and Chris Gage.
* Proceedings of the IEEE International Conference on Computer * Proceedings of the IEEE International Conference on Computer
* Communication Networks (ICCCN), August 2010. * 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] * [Rottenstreich 2010]
* Worst-Case TCAM Rule Expansion * Worst-Case TCAM Rule Expansion
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
* Kirill Kogan, Sergey Nikolenko, Ori Rottenstreich, William Culhane, * Kirill Kogan, Sergey Nikolenko, Ori Rottenstreich, William Culhane,
* and Patrick Eugster. * and Patrick Eugster.
* Proceedings of the 2014 ACM conference on SIGCOMM, August 2014. * 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> #include <linux/kernel.h>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* with the SECMARK target and state match. * with the SECMARK target and state match.
* *
* Based somewhat on CONNMARK: * 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 <hno@marasystems.com> * by Henrik Nordstrom <hno@marasystems.com>
* *
* (C) 2006,2008 Red Hat, Inc., James Morris <jmorris@redhat.com> * (C) 2006,2008 Red Hat, Inc., James Morris <jmorris@redhat.com>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* /*
* xt_connmark - Netfilter module to operate on connection marks * 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 <hno@marasystems.com> * by Henrik Nordstrom <hno@marasystems.com>
* Copyright © CC Computer Consultants GmbH, 2007 - 2008 * Copyright © CC Computer Consultants GmbH, 2007 - 2008
* Jan Engelhardt <jengelh@medozas.de> * Jan Engelhardt <jengelh@medozas.de>
......
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
/* /*
* (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org> * (C) 2011 Pablo Neira Ayuso <pablo@netfilter.org>
* (C) 2011 Intra2net AG <http://www.intra2net.com> * (C) 2011 Intra2net AG <https://www.intra2net.com>
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* based on ipt_time by Fabrice MARIE <fabrice@netfilter.org> * based on ipt_time by Fabrice MARIE <fabrice@netfilter.org>
* This is a module which is used for time matching * This is a module which is used for time matching
* It is using some modified code from dietlibc (localtime() function) * 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 * 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. * License (GPL). Copies of the GPL can be obtained from gnu.org/gpl.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment