
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICPMAC -------------------------------- Change the permissions of /proc/pressure/stat from 0666 to 0444. /proc/pressure/stat is read only now, therefore, there is no need to give the write permission to /proc/pressure/stat. Fixes: 4a69b56540f4 ("sched/psi: Introduce pressure.stat in psi") Signed-off-by: Lu Jialin <lujialin4@huawei.com> --- kernel/sched/psi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 32ebbc50f2ed..3a7e5216fff4 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -2006,7 +2006,7 @@ static int __init psi_proc_init(void) proc_create("pressure/irq", 0666, NULL, &psi_irq_proc_ops); #endif #ifdef CONFIG_PSI_FINE_GRAINED - proc_create("pressure/stat", 0666, NULL, &psi_stat_proc_ops); + proc_create("pressure/stat", 0444, NULL, &psi_stat_proc_ops); #endif } return 0; -- 2.34.1