anolis: mm: change del_pid permission to write only
commit 0f657097a26be0ae7a39cedbcfe0fa53fa81961c openAnolis Conflicts: Picked from 5.4. Backport-reason: Add code segment unevictable feature support [PATCH 3/8] ANBZ: #1871 /proc/unevictable/del_pid has mode 0600 but no read implementation, which will fail testcase ltp_fs_proc01. So change it to appropriate mode. Signed-off-by: zhaoxinchao <zhaoxinchao@uniontech.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Acked-by: Xu Yu <xuyu@linux.alibaba.com> Signed-off-by: Kun(llfl) <llfl@linux.alibaba.com> Link: https://gitee.com/anolis/cloud-kernel/pulls/636 Acked-by: Xu Yu <xuyu@linux.alibaba.com> Signed-off-by: Xin Hao <vernhao@tencent.com>
This commit is contained in:
parent
3022014c2b
commit
6524102fb6
|
@ -517,7 +517,7 @@ static int __init unevictable_init(void)
|
|||
if (!add_pid_file)
|
||||
goto out_dir;
|
||||
|
||||
del_pid_file = proc_create("del_pid", 0600,
|
||||
del_pid_file = proc_create("del_pid", 0200,
|
||||
monitor_dir, &del_proc_fops);
|
||||
if (!del_pid_file)
|
||||
goto out_add_pid;
|
||||
|
|
Loading…
Reference in New Issue