From 1686f30c8c169a819080567bd1c2027eb2236b35 Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 14 2020 07:00:39 +0000 Subject: Apply patch 0013-fix-direct-rule-in-a-zone-chain.patch patch_name: 0013-fix-direct-rule-in-a-zone-chain.patch present_in_specfile: true location_in_specfile: 13 --- diff --git a/src/firewall/core/fw_zone.py b/src/firewall/core/fw_zone.py index 59c9401..5677eff 100644 --- a/src/firewall/core/fw_zone.py +++ b/src/firewall/core/fw_zone.py @@ -188,7 +188,7 @@ class FirewallZone(object): if splits[1] not in self.get_zones(): return None if len(splits) == 2 or \ - (len(splits) == 3 and splits[2] in [ "log", "deny", "allow" ]): + (len(splits) == 3 and splits[2] in [ "pre", "log", "deny", "allow", "post" ]): return (splits[1], _chain) return None @@ -200,14 +200,12 @@ class FirewallZone(object): x = self.zone_from_chain(chain) if x is not None: (_zone, _chain) = x - if use_transaction is None: transaction = self.new_transaction() else: transaction = use_transaction - self.gen_chain_rules(_zone, True, [(table, _chain)], - transaction) + self.gen_chain_rules(_zone, True, table, _chain, transaction) if use_transaction is None: transaction.execute(True)