[Devel] [PATCH RHEL10 COMMIT] fixup! ve/cgroup: Allow to write to several safe cgroup files from CT
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jun 5 21:32:02 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit 2ae02ab29a3d7a1ba678a5173ff2e02c844dcb57
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date: Tue Jun 2 21:10:27 2026 +0000
fixup! ve/cgroup: Allow to write to several safe cgroup files from CT
https://virtuozzo.atlassian.net/browse/VSTOR-130116
Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Reviewed-by: Vasileios Almpanis <vasileios.almpanis 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 932414b882dd9..e32589e2f305e 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);
More information about the Devel
mailing list