xend: Allow guest write access to /local/domain/x/memory

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>
This commit is contained in:
Keir Fraser committed 2008-10-03 09:37:35 +01:00
1 parent 4b52a38711
commit ac4148f219
1 file changed
+1 -1
+1 -1
View 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})
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.