[Devel] [PATCH hci-8.2 v5 2/3] ve: give the pseudosuper relaxations of ve0 to its own tasks only
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:55:25 MSK 2026
> ve_current_is_pseudosuper() answers yes whenever the VE it is asked
> about is ve0, whoever asks. The line keeps the behaviour of ve0 being
> statically pseudosuper, but it reads as a grant to any task: a
> container task would get the relaxations of the host from a caller
> that passes it ve0.
>
> Grant nothing to a task outside the VE asked about, and in ve0 grant
> to every task of it. The relaxations of a VE belong to the tasks the
> host sent into it, and for ve0 those are its own tasks, no mark
> involved.
>
> No caller but one sees a different answer:
>
> - devcgroup_legacy_check_permission(), netlink_setsockopt() for
> NETLINK_REPAIR, cgroup_file_write(), ve_hide_cgroups(),
> [ ... ]
> Feature: trace: prohibit tracing sensitive tasks from CT
> Suggested-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
> Reviewed-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
> Reviewed-by: Mirian Shilakadze <mirian.shilakadze at virtuozzo.com>
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261127-b4-prep-khorenko-vstor-156164-ve-setup-task-pseudosuper-v5-0-32c4b6342ec2@virtuozzo.com?part=2
More information about the Devel
mailing list