
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/ICMGLX -------------------------------- To meet the principle of least privilege for file permissions, modify xcall proc file permission from 644 to 640. Fixes: b97ead69555a ("arm64: Introduce xcall prefetch enable interface") Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com> --- fs/proc/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index 1788ea4e9206..2b3719da025b 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -3616,7 +3616,7 @@ static const struct pid_entry tgid_base_stuff[] = { REG("smart_grid_level", 0644, proc_pid_sg_level_operations), #endif #ifdef CONFIG_FAST_SYSCALL - REG("xcall", 0644, proc_pid_xcall_operations), + REG("xcall", 0640, proc_pid_xcall_operations), #endif #ifdef CONFIG_XCALL_PREFETCH REG("prefetch", 0644, proc_pid_xcall_prefetch_operations), -- 2.34.1