[Devel] [PATCH VZ10 v4 09/44] fixup! ve/cgroup: Allow to write to several safe cgroup files from CT

Vladimir Riabchun vladimir.riabchun at virtuozzo.com
Wed Jun 3 00:10:27 MSK 2026


https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
 kernel/cgroup/cgroup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 932414b882dd..e32589e2f305 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -4793,9 +4793,9 @@ static ssize_t cgroup_file_write(struct kernfs_open_file *of, char *buf,
 
 	if (!ve_is_super(get_exec_env())
 	    && test_bit(CGRP_VE_ROOT, &cgrp->flags)
-            && !get_exec_env()->is_pseudosuper
-            && !(cft->flags & CFTYPE_VE_WRITABLE))
-                return -EPERM;
+	    && !get_exec_env()->is_pseudosuper
+	    && !(cft->flags & CFTYPE_VE_WRITABLE))
+		return -EPERM;
 
 	if (cft->write)
 		return cft->write(of, buf, nbytes, off);
-- 
2.47.1



More information about the Devel mailing list