qubes/mgmt: mgmt.vm.property.Reset

QubesOS/qubes-issues#2622
This commit is contained in:
Wojtek Porczyk 2017-02-14 11:37:17 +01:00
parent ada0437f52
commit 8e678c0172

View File

@ -180,3 +180,12 @@ class QubesMgmt(object):
return ''
return qubes.utils.format_doc(doc)
def vm_property_reset(self, untrusted_payload):
assert self.arg in self.dest.property_list()
assert not untrusted_payload
del untrusted_payload
self.fire_event_for_permission()
delattr(self.dest, self.arg)