[Devel] [PATCH hci-8.2 v2 4/6] cgroup: give the CT root file writes and hidden roots only to setup tasks
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Nov 17 13:30:20 MSK 2026
> While a VE is pseudosuper, any task in it may write the read-only files
> of the container's root cgroup and sees the hidden cgroup roots. That
> includes the container's own binaries that vzctl and CRIU run during
> start or restore. quotaon at start can rewrite the root memory.max, and
> any of them can write 0 to ve.pseudosuper, which ends the window early
> and makes CRIU's restoring tasks reachable again.
>
> Use ve_current_is_pseudosuper() for both, so only setup tasks get them.
>
> Feature: ve: CRIU support
> https://virtuozzo.atlassian.net/browse/VSTOR-151265
> Signed-off-by: Mirian Shilakadze <mirian.shilakadze at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117101329.225854-1-mirian.shilakadze@virtuozzo.com?part=4
More information about the Devel
mailing list