2007-01-16 00:42:10 +01:00
|
|
|
From: Charles Coffing <ccoffing@novell.com>
|
|
|
|
Upstream: no
|
|
|
|
|
2009-08-01 11:53:46 +02:00
|
|
|
Index: xen-3.4.1-testing/tools/python/xen/xm/main.py
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2009-08-01 11:53:46 +02:00
|
|
|
--- xen-3.4.1-testing.orig/tools/python/xen/xm/main.py
|
|
|
|
+++ xen-3.4.1-testing/tools/python/xen/xm/main.py
|
2009-05-04 18:38:09 +02:00
|
|
|
@@ -1917,6 +1917,10 @@ def xm_debug_keys(args):
|
2007-01-16 00:42:10 +01:00
|
|
|
def xm_top(args):
|
|
|
|
arg_check(args, "top", 0)
|
|
|
|
|
|
|
|
+ # A hack to get a clear error message if ran as non-root
|
|
|
|
+ if os.geteuid() != 0:
|
|
|
|
+ raise IOError()
|
|
|
|
+
|
2007-12-20 16:46:41 +01:00
|
|
|
os.system('xentop')
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
def xm_dmesg(args):
|