2007-01-15 23:42:10 +00:00
|
|
|
From: Charles Coffing <ccoffing@novell.com>
|
|
|
|
Upstream: no
|
|
|
|
|
2010-09-27 22:07:20 +00:00
|
|
|
Index: xen-4.0.0-testing/tools/python/xen/xm/main.py
|
2007-01-15 23:42:10 +00:00
|
|
|
===================================================================
|
2010-09-27 22:07:20 +00:00
|
|
|
--- xen-4.0.0-testing.orig/tools/python/xen/xm/main.py
|
|
|
|
+++ xen-4.0.0-testing/tools/python/xen/xm/main.py
|
|
|
|
@@ -2052,6 +2052,10 @@ def xm_debug_keys(args):
|
2007-01-15 23:42:10 +00: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 15:46:41 +00:00
|
|
|
os.system('xentop')
|
2007-01-15 23:42:10 +00:00
|
|
|
|
|
|
|
def xm_dmesg(args):
|