[Devel] [PATCH RHEL COMMIT] ve/taskstats: allow delivery of task attributes in CT context

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 24 15:48:51 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after ark-5.14
------>
commit fedd4ebbe95d2981fccba25b754bb870728ae7da
Author: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
Date:   Fri Sep 24 15:48:51 2021 +0300

    ve/taskstats: allow delivery of task attributes in CT context
    
    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 4d6bcaaf52a0..1f2c178c845a 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -647,7 +647,7 @@ static const struct genl_ops taskstats_ops[] = {
 		.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,


More information about the Devel mailing list