From b21d6fbaf0d3ceede325f3f5d4c79dfab19b6bed Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sun, 13 May 2012 19:45:15 +0200 Subject: [PATCH] Improve the message that is printed when Linux denies access to taskstats. --- iotop/ui.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/iotop/ui.py b/iotop/ui.py index 3292310..bfec6d8 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -482,8 +482,14 @@ def run_iotop(options): except OSError, e: if e.errno == errno.EPERM: print >> sys.stderr, e - print >> sys.stderr, ('iotop requires root or the NET_ADMIN ' - 'capability.') + print >> sys.stderr, (''' +The Linux kernel interfaces that iotop relies on now require root priviliges +or the NET_ADMIN capability. This change occured because a security issue +(CVE-2011-2494) was found that allows leakage of sensitive data across user +boundaries. If you require the ability to run iotop as a non-root user, please +configure sudo to allow you to run iotop as root. + +Please do not file bugs on iotop about this.''') sys.exit(1) else: raise -- 2.11.4.GIT