Linux Archive

Linux Archive (
-   Debian Kernel (
-   -   taskstats capability check in stable (

Ben Hutchings 12-14-2011 01:12 AM

taskstats capability check in stable
This change is likely to be included in 2.6.32.y and, by default, in our
next stable point release. As Linus says, this means that unprivileged
accounts won't be able to run iotop, but this is probably correct

It appears that older versions of iotop do not report this error in a
helpful way (#644616). So I think that if we apply this change to the
kernel then iotop should also be updated in stable.


-------- Forwarded Message --------
Subject: Patch "Make TASKSTATS require root access" has been added to the 2.6.32-longterm tree
Date: Tue, 13 Dec 2011 14:10:52 -0800

This is a note to let you know that I've just added the patch titled

Make TASKSTATS require root access

to the 2.6.32-longterm tree which can be found at:;a=summary

The filename of the patch is:
and it can be found in the queue-2.6.32 subdirectory.

If you, or anyone else, feels it should not be added to the 2.6.32 longterm tree,
please let <> know about it.

From 1a51410abe7d0ee4b1d112780f46df87d3621043 Mon Sep 17 00:00:00 2001
From: Linus Torvalds <>
Date: Mon, 19 Sep 2011 17:04:37 -0700
Subject: Make TASKSTATS require root access

From: Linus Torvalds <>

commit 1a51410abe7d0ee4b1d112780f46df87d3621043 upstream.

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.

Use of the GENL_ADMIN_PERM suggested by Johannes Berg as an alternative
to checking the capabilities by hand.

Reported-by: Vasiliy Kulikov <>
Cc: Johannes Berg <>
Acked-by: Balbir Singh <>
Signed-off-by: Linus Torvalds <>
Cc: Moritz Mhlenhoff <>
Signed-off-by: Greg Kroah-Hartman <>

kernel/taskstats.c | 1 +
1 file changed, 1 insertion(+)

--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -592,6 +592,7 @@ static struct genl_ops taskstats_ops = {
.doit = taskstats_user_cmd,
.policy = taskstats_cmd_get_policy,
+ .flags = GENL_ADMIN_PERM,

static struct genl_ops cgroupstats_ops = {

Patches currently in longterm-queue-2.6.32 which might be from are

To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to
More majordomo info at

Ben Hutchings
Computers are not intelligent. They only think they are.

All times are GMT. The time now is 05:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.