Blame SOURCES/0097-fix-direct-removeRules-not-removing-all-rules-in-cha.patch
|
|
136e2c |
From 9f9a4762aa18d8ef399fc7e45c72a2fb1043bbc2 Mon Sep 17 00:00:00 2001
|
|
|
792c82 |
From: Eric Garver <eric@garver.life>
|
|
|
792c82 |
Date: Fri, 30 Aug 2019 14:09:11 -0400
|
|
|
136e2c |
Subject: [PATCH 97/99] fix: direct: removeRules() not removing all rules in
|
|
|
792c82 |
chain
|
|
|
792c82 |
|
|
|
792c82 |
Fixes: 174005b15059 ("fix: direct: removeRules() was mistakenly removing all rules")
|
|
|
792c82 |
(cherry picked from commit 083d6527ad9c60442e424172e223b65132bc6d17)
|
|
|
792c82 |
(cherry picked from commit 55a639aed7a8b5f2d77d39b26dd78f51b20100ed)
|
|
|
792c82 |
---
|
|
|
792c82 |
src/firewall/server/config.py | 2 +-
|
|
|
792c82 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
792c82 |
|
|
|
792c82 |
diff --git a/src/firewall/server/config.py b/src/firewall/server/config.py
|
|
|
792c82 |
index b2cebea9b4be..cd640ba881ca 100644
|
|
|
792c82 |
--- a/src/firewall/server/config.py
|
|
|
792c82 |
+++ b/src/firewall/server/config.py
|
|
|
792c82 |
@@ -1367,7 +1367,7 @@ class FirewallDConfig(slip.dbus.service.Object):
|
|
|
792c82 |
(ipv, table, chain, ))
|
|
|
792c82 |
self.accessCheck(sender)
|
|
|
792c82 |
settings = list(self.getSettings())
|
|
|
792c82 |
- for rule in settings[1]:
|
|
|
792c82 |
+ for rule in settings[1][:]:
|
|
|
792c82 |
if (ipv, table, chain) == (rule[0], rule[1], rule[2]):
|
|
|
792c82 |
settings[1].remove(rule)
|
|
|
792c82 |
self.update(tuple(settings))
|
|
|
792c82 |
--
|
|
|
136e2c |
2.20.1
|
|
|
792c82 |
|