From fd8ecca9bdb2369a87ba53e3bdb72c34fd28adac Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 9 Mar 2011 17:39:09 +0100 Subject: [PATCH] Create qubes_iptables_error xenstore file in FwVM and set its permissions. --- dom0/qvm-core/qubes.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 04ef5616..d6d9a28f 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -943,6 +943,14 @@ class QubesFirewallVm(QubesNetVm): return super(QubesFirewallVm, self).create_xenstore_entries(xid) + retcode = subprocess.check_call ([ + "/usr/bin/xenstore-write", + "/local/domain/{0}/qubes_iptables_error".format(xid), + ""]) + retcode = subprocess.check_call ([ + "/usr/bin/xenstore-chmod", + "/local/domain/{0}/qubes_iptables_error".format(xid), + "r{0} w{1}".format(xid,xid)]) self.write_iptables_xenstore_entry() def write_iptables_xenstore_entry(self):