2007-01-16 00:42:10 +01:00
|
|
|
From: Charles Coffing <ccoffing@novell.com>
|
|
|
|
Upstream: no
|
|
|
|
|
2011-05-31 19:35:29 +02:00
|
|
|
Index: xen-4.1.1-testing/tools/python/xen/xm/main.py
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2011-05-31 19:35:29 +02:00
|
|
|
--- xen-4.1.1-testing.orig/tools/python/xen/xm/main.py
|
|
|
|
+++ xen-4.1.1-testing/tools/python/xen/xm/main.py
|
2011-03-21 17:47:37 +01:00
|
|
|
@@ -2201,6 +2201,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):
|