Revert "firewall3: support table load on access on Linux 5.15+"
authorRui Salvaterra <rsalvaterra@gmail.com>
Thu, 17 Feb 2022 10:24:04 +0000 (10:24 +0000)
committerRui Salvaterra <rsalvaterra@gmail.com>
Mon, 21 Feb 2022 23:22:06 +0000 (23:22 +0000)
Handled more elegantly in the previous commit.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
main.c

diff --git a/main.c b/main.c
index 5985e73b21dd8d06e91525d9efe5e717ecdce952..7deb6361287f1d3e3d091b29c2c276c6889311ad 100644 (file)
--- a/main.c
+++ b/main.c
@@ -263,17 +263,6 @@ start(void)
                        continue;
                }
 
-               /* Linux 5.15+: make sure the tables are loaded and
-                * /proc/net/ip{,6}_tables_names are thus populated.
-                */
-               for (table = FW3_TABLE_FILTER; table <= FW3_TABLE_RAW; table++)
-               {
-                       if (!(handle = fw3_ipt_open(family, table)))
-                               continue;
-
-                       fw3_ipt_close(handle);
-               }
-
                for (table = FW3_TABLE_FILTER; table <= FW3_TABLE_RAW; table++)
                {
                        if (!(handle = fw3_ipt_open(family, table)))