From 8e678c01725c90142a86c96b7801bab3897cd3dc Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Tue, 14 Feb 2017 11:37:17 +0100 Subject: [PATCH] qubes/mgmt: mgmt.vm.property.Reset QubesOS/qubes-issues#2622 --- qubes/mgmt.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qubes/mgmt.py b/qubes/mgmt.py index e8a44f0b..79e7e104 100644 --- a/qubes/mgmt.py +++ b/qubes/mgmt.py @@ -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)