Bug 742883
Summary: | [abrt] iotop-0.4.3-1.fc16: netlink.py:229:recv:OSError: Netlink error: Operation not permitted (1) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lukas Bezdicka <social> |
Component: | iotop | Assignee: | Adel Gadllah <adel.gadllah> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | adel.gadllah, alekcejk, kaloyan_petrov, mhlavink, misek, sanne |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:e4db8fed9e7402103e0cda5e5d151a8c9ccb0dc4 | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-14 11:21:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Lukas Bezdicka
2011-10-03 08:59:34 UTC
Package: iotop-0.4.3-1.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- iotop as normal user. *** Bug 742803 has been marked as a duplicate of this bug. *** This is an intentional change in the kernel. commit 1a51410abe7d0ee4b1d112780f46df87d3621043 Author: Linus Torvalds <torvalds> Date: Mon Sep 19 17:04:37 2011 -0700 Make TASKSTATS require root access Ok, this isn't optimal, since it means that 'iotop' needs admin capabilities, and we may have to work on this some more. But at the same time it is very much not acceptable to let anybody just read anybody elses IO statistics quite at this level. Some information about this bug: iotop uses netlink to get information about io stats. Because of kernel bug fix CVE-2011-2494, this requires root privileges now. iotop does not expect this, that's why it's failing instead of reporting "you need root privileges for this". You can get rid of this traceback simply by changing /usr/lib/python2.6/site-packages/iotop/data.py line 162 to ignore EPERM. Even with this change, iotop will run, but won't show anything. It won't allow you to see foreign processes nor your processes, because whole netlink communication is gone. Some stats are available in /proc/<pid>/io where user permissions are enough to read stats about user's own processes. So iotop needs bigger change to make it at least little usable for regular users again. I'll get to this later (my todo list is too long right now), so meanwhile patches are welcome if someone wants to work on this. Is it possible to use capabilities for iotop? (In reply to comment #3) > This is an intentional change in the kernel. > > commit 1a51410abe7d0ee4b1d112780f46df87d3621043 > Author: Linus Torvalds <torvalds> > Date: Mon Sep 19 17:04:37 2011 -0700 > > Make TASKSTATS require root access > > Ok, this isn't optimal, since it means that 'iotop' needs admin > capabilities, and we may have to work on this some more. But at the > same time it is very much not acceptable to let anybody just read > anybody elses IO statistics quite at this level. So a patch from Linus "breaks" a userspace app? ;) Anyway not sure what to do about this ... we could make iotop just bail out for non root users. Optimally the kernel would just limit access to tasks of the accessing user when != root. *** Bug 745091 has been marked as a duplicate of this bug. *** Package: iotop-0.4.3-1.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- Start iotop as normal user. It works under root. Package: iotop-0.4.3-1.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- I started iotop as non-root user. Package: iotop-0.4.3-1.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- Run iotop by a normal user... Well, IMHO the bug is fixed. At least there are no crashes. |