The commit is pushed to "branch-rh10-6.12.0-55.13.1.3.x.vz10-ovz" and will 
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.24.vz10
------>
commit fb3cbea4708034f482e5b191c04ccc1fdf51f924
Author: Pavel Tikhomirov <[email protected]>
Date:   Wed Dec 10 18:34:30 2025 +0800

    ve/cgroup-v2: Don't hide default cgroup when ve controller is enabled on it
    
    Else default hierarchy is hidden in container and that prevents systemd
    from booting.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-104639
    Signed-off-by: Pavel Tikhomirov <[email protected]>
    
    Feature: ve: ve generic structures
---
 kernel/cgroup/cgroup.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 14f21de399adf..eb2b64f7da37b 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -6917,7 +6917,10 @@ void cgroup_path_from_kernfs_id(u64 id, char *buf, 
size_t buflen)
 int ve_hide_cgroups(struct cgroup_root *root)
 {
        struct ve_struct *ve = get_exec_env();
-       unsigned long hidden_mask = (1UL << ve_cgrp_id);
+       unsigned long hidden_mask = 0;
+
+       if (!cgroup_subsys_on_dfl(ve_cgrp_subsys))
+               hidden_mask = (1UL << ve_cgrp_id);
 
        /*
         * Hide ve cgroup in CT for docker, still showing it to pseudosuper
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to