Re: [PATCH v2] sched/psi: Check CAP_SYS_RESOURCE in the initial user namespace

From: Hungyu Lin

Date: Fri Dec 04 2026 - 06:19:49 EST


On Fri, Nov 20, 2026 at 12:51 AM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
> Unlike capable(), cap_raised() does not check against the initial user
> namespace and does not go through the LSM capable hook. A task that
> creates a user namespace has a full effective set inside it, so an
> unprivileged user gets privileged triggers on /proc/pressure/* and on
> delegated cgroup pressure files: windows that are not a multiple of 2s,
> served by the SCHED_FIFO psimon kthread, which the N*2s rule was meant
> to keep from unprivileged users.

Johannes, Suren, gentle ping. This has Mickaël's Reviewed-by and
Tested-by from Mickaël and Sieun, and it still applies cleanly to
tip/sched/core. Could you take a look?

Thanks,
Hungyu