2007-01-16 00:42:10 +01:00
|
|
|
From: Charles Coffing <ccoffing@novell.com>
|
|
|
|
Upstream: no
|
|
|
|
|
2008-09-25 01:20:56 +02:00
|
|
|
Index: xen-3.3.1-testing/tools/python/xen/xm/main.py
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-09-25 01:20:56 +02:00
|
|
|
--- xen-3.3.1-testing.orig/tools/python/xen/xm/main.py
|
|
|
|
+++ xen-3.3.1-testing/tools/python/xen/xm/main.py
|
2008-10-11 16:22:01 +02:00
|
|
|
@@ -1934,6 +1934,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):
|