[PATCH OLK-6.6] sched/psi: change permissions of /proc/pressure/stat

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

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/17530 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/GBE... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/17530 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/GBE...
participants (2)
-
Lu Jialin
-
patchwork bot