[Devel] [PATCH RH9 29/33] ve/taskstats: allow delivery of task attributes in CT context
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Thu Sep 23 22:08:32 MSK 2021
From: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
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>
(cherry picked from vz8 commit 288ad5c98b3bb97ba30c427989902f4173748441)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko 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 4d6bcaa..1f2c178 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -647,7 +647,7 @@ void taskstats_exit(struct task_struct *tsk, int group_dead)
.doit = taskstats_user_cmd,
.policy = taskstats_cmd_get_policy,
.maxattr = ARRAY_SIZE(taskstats_cmd_get_policy) - 1,
- .flags = GENL_ADMIN_PERM,
+ .flags = GENL_VE_ADMIN_PERM,
},
{
.cmd = CGROUPSTATS_CMD_GET,
--
1.8.3.1
More information about the Devel
mailing list