[Devel] [PATCH hci-8.2 v2 2/6] ve: hide only the tasks the host sends into a VE

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 13:22:16 MSK 2026


> ve_setup_task() marks a task entering a running VE VD_VE_ENTER_TASK,
> which hides it from ptrace and /proc/<pid>/exe inside the VE. A
> container task gets the mark too when it setns()es into its own VE or
> enters a nested one, and a host task entering a stopping or stopped VE
> is not hidden at all.
> 
> The mark says a task is the host's, a later change lets it skip the
> mount limit of a pseudosuper VE, and it goes to the mm, which a
> container task may share with others. So mark only tasks coming from
> the host, in every VE state but starting, which the next change
> handles. A task entering its nested VE is no longer hidden there. In a
> pseudosuper VE the host's tasks cannot be told from the container's
> yet, so a task leaving one is still marked until the next change.
> 
> 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/20261117101329.225854-1-mirian.shilakadze@virtuozzo.com?part=2




More information about the Devel mailing list