8198e029dc
checked in (request 44315) OBS-URL: https://build.opensuse.org/request/show/44315 OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=70
19 lines
549 B
Diff
19 lines
549 B
Diff
From: Charles Coffing <ccoffing@novell.com>
|
|
Upstream: no
|
|
|
|
Index: xen-4.0.0-testing/tools/python/xen/xm/main.py
|
|
===================================================================
|
|
--- xen-4.0.0-testing.orig/tools/python/xen/xm/main.py
|
|
+++ xen-4.0.0-testing/tools/python/xen/xm/main.py
|
|
@@ -2019,6 +2019,10 @@ def xm_debug_keys(args):
|
|
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()
|
|
+
|
|
os.system('xentop')
|
|
|
|
def xm_dmesg(args):
|