xend: Allow guest write access to /local/domain/x/memory
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 3 Oct 2008 08:37:35 +0000 (09:37 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 3 Oct 2008 08:37:35 +0000 (09:37 +0100)
Required for xenballoond, and tools do not need to trust any values
written in that subdirectory.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xend/XendDomainInfo.py

index da1cd824854c6f41fdd62685ca60fd0c982d66a1..77b2598b1c9892230ae13b10f6c8a3f4f8b21b3c 100644 (file)
@@ -1303,7 +1303,7 @@ class XendDomainInfo:
         t.mkdir()
         t.set_permissions({'dom' : self.domid, 'read' : True})
         t.write('vm', self.vmpath)
-        for i in [ 'device', 'control', 'error' ]:
+        for i in [ 'device', 'control', 'error', 'memory' ]:
             t.mkdir(i)
             t.set_permissions(i, {'dom' : self.domid})