Generate firewall rules only for VMs connected to this firewall (#158)

This commit is contained in:
Marek Marczykowski 2011-04-03 01:54:04 +02:00
parent ab244d803f
commit fa703c536f

View File

@ -1378,6 +1378,10 @@ class QubesProxyVm(QubesNetVm):
vms = [vm for vm in qvm_collection.values() if vm.has_firewall()]
for vm in vms:
# Process only VMs connected to this ProxyVM
if not vm.netvm_vm or vm.netvm_vm.qid != self.qid:
continue
conf = vm.get_firewall_conf()
xid = vm.get_xid()