summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2022-02-17 10:24:04 +0000
committerRui Salvaterra <rsalvaterra@gmail.com>2022-02-21 23:22:06 +0000
commit4cd7d4f36bea731bf901cb067456f1d460294926 (patch)
treed2d3235a035c564e9e5cfee744eefe6215ec18df
parent50979cc9c3805a72145440299b5c78e1be25c473 (diff)
downloadfirewall3-master.tar.gz
Revert "firewall3: support table load on access on Linux 5.15+"HEADmaster
Handled more elegantly in the previous commit. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
-rw-r--r--main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/main.c b/main.c
index 5985e73..7deb636 100644
--- 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)))