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

From: 양시은

Date: Mon Nov 09 2026 - 19:49:42 EST


On Mon, Nov 9, 2026 at 18:50:52 +0100, Mickaël Salaün wrote:
> This is directly visible with the new Landlock control of capabilities.


I reported the PSI/Landlock CAP_SYS_RESOURCE mismatch privately to
the maintainers on November 4, 2026, along with reproduction results.

I tested Hungyu's patch on Linux v7.4-rc1 with Landlock ABI 12 and
confirmed that privileged PSI trigger creation is rejected after
Landlock restricts CAP_SYS_RESOURCE.

Nice catch on the user-namespace issue as well. Using
file_ns_capable() with &init_user_ns restores both the initial user
namespace check and LSM mediation.

Reported-by: Sieun Yang <didtldms2525@xxxxxxxxx>
Tested-by: Sieun Yang <didtldms2525@xxxxxxxxx>

Thanks,
Sieun Yang