From 6ad91617a79e9a2d61a72274845f08ee275aadc3 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 9 Mar 2011 18:07:22 +0100 Subject: [PATCH] Store the state of FwVM rules --- dom0/qvm-core/qubes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index d6d9a28f..d28dbeeb 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -933,6 +933,7 @@ class QubesFirewallVm(QubesNetVm): """ def __init__(self, **kwargs): super(QubesFirewallVm, self).__init__(uses_default_netvm=False, **kwargs) + self.rules_applied = None @property def type(self): @@ -1021,6 +1022,7 @@ class QubesFirewallVm(QubesNetVm): iptables += "COMMIT" + self.rules_applied = None return subprocess.check_call ([ "/usr/bin/xenstore-write", "/local/domain/{0}/qubes_iptables".format(self.get_xid()),