[Devel] taskstats: allow delivery of task attributes in VE context

Submitted by Stanislav Kinsburskiy on July 4, 2017, 4:21 p.m.

Details

Message ID 20170704162120.26742.29798.stgit@localhost.localdomain
State New
Series "taskstats: allow delivery of task attributes in VE context"
Headers show

Commit Message

Stanislav Kinsburskiy July 4, 2017, 4:21 p.m.
This is needed to make iotop work in container:

https://jira.sw.ru/browse/PSBM-56171

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 kernel/taskstats.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/kernel/taskstats.c b/kernel/taskstats.c
index 37d4456..ae620de 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -664,7 +664,7 @@  static const struct genl_ops taskstats_ops[] = {
 		.cmd		= TASKSTATS_CMD_GET,
 		.doit		= taskstats_user_cmd,
 		.policy		= taskstats_cmd_get_policy,
-		.flags		= GENL_ADMIN_PERM,
+		.flags		= GENL_VE_ADMIN_PERM,
 	},
 	{
 		.cmd		= CGROUPSTATS_CMD_GET,