WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Don't explode when running xm as non-root

To: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Don't explode when running xm as non-root
From: Dan Smith <danms@xxxxxxxxxx>
Date: Wed, 05 Oct 2005 15:15:08 -0700
Delivery-date: Wed, 05 Oct 2005 22:13:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)
The attached patch fixes a recent regression in xm which causes a
stack trace if a user tries to run xm as a non-root user.

I ran the latest xm-test, and nothing (else) broke as a result
of this patch.

Signed-off-by: Dan Smith <danms@xxxxxxxxxx>
diff -r f98c8238e909 tools/python/xen/xend/XendProtocol.py
--- a/tools/python/xen/xend/XendProtocol.py     Wed Oct  5 18:15:56 2005
+++ b/tools/python/xen/xend/XendProtocol.py     Wed Oct  5 15:14:52 2005
@@ -32,9 +32,6 @@
 HTTP_NO_CONTENT                      = 204
 
 
-xroot = XendRoot.instance()
-
-
 class XendError(RuntimeError):
     """Error class for 'expected errors' when talking to xend.
     """
@@ -202,7 +199,7 @@
 
     def __init__(self, path=None):
         if path is None:
-            path = xroot.get_xend_unix_path()
+            path = XendRoot.instance().get_xend_unix_path()
         self.path = path
 
     def makeConnection(self, url):
-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Don't explode when running xm as non-root, Dan Smith <=