Blame SOURCES/0038-fix-nftables-do-not-log-icmp-block-if-inversion.patch

b8221b
From de28755c4e14224f6303c864327fffe7d2639268 Mon Sep 17 00:00:00 2001
b8221b
From: Eric Garver <eric@garver.life>
b8221b
Date: Mon, 13 Sep 2021 15:45:53 -0400
b8221b
Subject: [PATCH 38/50] fix(nftables): do not log icmp block if inversion
b8221b
b8221b
Fixes: #696
b8221b
Fixes: rhbz1945833
b8221b
(cherry picked from commit 50a5ed2d0fa6169c6780488dae931a3b4fce47ab)
b8221b
(cherry picked from commit a451b033200b289c6fac823f7dce23c37a38a3d1)
b8221b
---
b8221b
 src/firewall/core/nftables.py | 2 +-
b8221b
 1 file changed, 1 insertion(+), 1 deletion(-)
b8221b
b8221b
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
b8221b
index e3ae988bbdab..29a9a2492032 100644
b8221b
--- a/src/firewall/core/nftables.py
b8221b
+++ b/src/firewall/core/nftables.py
b8221b
@@ -1601,7 +1601,7 @@ class nftables(object):
b8221b
                     rule.update(self._rich_rule_priority_fragment(rich_rule))
b8221b
                     rules.append({add_del: {"rule": rule}})
b8221b
             else:
b8221b
-                if self._fw.get_log_denied() != "off" and self._fw.policy.query_icmp_block_inversion(policy):
b8221b
+                if self._fw.get_log_denied() != "off" and not self._fw.policy.query_icmp_block_inversion(policy):
b8221b
                     rules.append({add_del: {"rule": {"family": "inet",
b8221b
                                                      "table": TABLE_NAME,
b8221b
                                                      "chain": final_chain,
b8221b
-- 
b8221b
2.27.0
b8221b