[Devel] [PATCH vz10 3/6] ve: hide the tasks that set up a starting VE from the rest of it
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Mon Nov 16 13:55:26 MSK 2026
> CRIU's restoring tasks enter the VE before it runs, so they stay
> VD_PTRACE_COREDUMP. A container binary run during the restore, such as
> the tee that post-restore runs via vzctl exec3, can open their
> /proc/<pid>/fd and take CRIU's log, its /proc fd and the transport
> socket.
>
> Mark a task the host sends into a starting VE as VD_VE_SETUP_TASK.
> Fork keeps the mark and exec drops it. While the VE is pseudosuper, such
> a task dumps no core and is reachable only from another setup task of
> the VE, so CRIU's tasks still reach each other and what they exec does
> not. Once pseudosuper is cleared the mark counts as VD_PTRACE_COREDUMP,
> so the restored processes become ordinary ones.
>
> Feature: trace: prohibit tracing sensitive tasks from CT
> 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/20261116104552.102938-1-mirian.shilakadze@virtuozzo.com?part=3
More information about the Devel
mailing list