[Devel] [PATCH hci-8.2 v3 0/6] ve: give the pseudosuper privileges only to the tasks setting up a VE
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 18 18:14:39 MSK 2026
On Wed, 18 Nov 2026 14:36:32 +0400, Mirian Shilakadze wrote:
> ve: give the pseudosuper privileges only to the tasks setting up a VE
>
> While a container starts or is restored, ve.pseudosuper is on and its
> relaxations apply to every process in the container. The container's
> own binaries that vzctl and CRIU run in that window get them too, such
> as quotaon at start and the tee that vz-rst-action runs at post-restore.
> Such a binary can rewrite the container's root memory.max, skip the
> mount limit and the mount option filter, use NETLINK_REPAIR, or clear
> pseudosuper early. During a restore it can also open /proc/<pid>/fd of
> CRIU's restoring tasks and take CRIU's log, its /proc fd and the
> transport socket.
>
> [...]
Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in rh10-6.12.0-211.75.1.26.3.vz10, thanks!
[1/6] ve: tell ve_setup_task() which VE the task comes from
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/75d56c3b36ed
[2/6] ve: hide only the tasks the host sends into a VE
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/09024a13fdc5
[3/6] ve: hide the tasks that set up a starting VE from the rest of it
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/a7d797d177e7
[4/6] cgroup: give the CT root file writes and hidden roots only to setup tasks
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/bd6d7bf907de
[5/6] fs: keep the mount relaxations of a pseudosuper VE from container binaries
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/9f185a7ca286
[6/6] ve: give the remaining pseudosuper relaxations only to setup tasks
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/c2496901d252
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list