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

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Tue Jul 4 19:21:33 MSK 2017


This is needed to make iotop work in container:

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

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

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,



More information about the Devel mailing list