From: Paul Wise Date: Sun, 13 May 2012 17:45:15 +0000 (+0200) Subject: Improve the message that is printed when Linux denies access to taskstats. X-Git-Tag: iotop-0.6~32 X-Git-Url: https://repo.or.cz/w/iotop.git/commitdiff_plain/b21d6fbaf0d3ceede325f3f5d4c79dfab19b6bed Improve the message that is printed when Linux denies access to taskstats. --- 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