[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86/hvm: don't let domains call HVMOP_set_mem_type on themselves.



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1297071599 0
# Node ID 098c8a6483c9140f82f8d39ddb5e2b7d6e394151
# Parent  7ada6faef565bd8f676ddfaff9c568ca592ee5be
x86/hvm: don't let domains call HVMOP_set_mem_type on themselves.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
---
 xen/arch/x86/hvm/hvm.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 7ada6faef565 -r 098c8a6483c9 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Sun Feb 06 17:26:31 2011 +0000
+++ b/xen/arch/x86/hvm/hvm.c    Mon Feb 07 09:39:59 2011 +0000
@@ -3461,6 +3461,10 @@ long do_hvm_op(unsigned long op, XEN_GUE
         if ( rc != 0 )
             return rc;
 
+        rc = -EPERM;
+        if ( d == current->domain )
+            goto param_fail4;
+
         rc = -EINVAL;
         if ( !is_hvm_domain(d) )
             goto param_fail4;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.