]> git.baikalelectronics.ru Git - kernel.git/commit
psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files
authorJosh Hunt <johunt@akamai.com>
Fri, 2 Apr 2021 02:58:33 +0000 (22:58 -0400)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 8 Apr 2021 21:09:44 +0000 (23:09 +0200)
commitaaa7108111a626a9429f211d036406baa37a338f
treef8981c6bf0d2dea9ecfcfa0cd21ad822c770db42
parent1b8e69e64e7d1b791d46d96daedcc08b53906295
psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

Currently only root can write files under /proc/pressure. Relax this to
allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be
able to write to these files.

Signed-off-by: Josh Hunt <johunt@akamai.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: https://lkml.kernel.org/r/20210402025833.27599-1-johunt@akamai.com
kernel/sched/psi.c