dom0: default TemplateVM firewall: block all traffic and allow use of yum proxy (#590)

This commit is contained in:
Marek Marczykowski 2012-06-05 19:37:39 +02:00
parent a8b992e647
commit a528befbc4

View File

@ -1565,6 +1565,9 @@ class QubesTemplateVm(QubesVm):
def updateable(self):
return True
def get_firewall_defaults(self):
return { "rules": list(), "allow": False, "allowDns": False, "allowIcmp": False, "allowYumProxy": True }
def get_rootdev(self, source_template=None):
return "'script:origin:{dir}/root.img:{dir}/root-cow.img,xvda,w',".format(dir=self.dir_path)