From: Li Zefan Date: Fri, 7 Aug 2009 08:37:10 +0000 (+0800) Subject: lockdep: Fix file mode of lock_stat X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9795447f71324d8f14c19ed68b43c883135c3f59;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git lockdep: Fix file mode of lock_stat /proc/lock_stat is writable. Signed-off-by: Li Zefan Cc: Peter Zijlstra LKML-Reference: <4A7BE7B6.10904@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c index d7135aa2d2c4..e94caa666dba 100644 --- a/kernel/lockdep_proc.c +++ b/kernel/lockdep_proc.c @@ -758,7 +758,8 @@ static int __init lockdep_proc_init(void) &proc_lockdep_stats_operations); #ifdef CONFIG_LOCK_STAT - proc_create("lock_stat", S_IRUSR, NULL, &proc_lock_stat_operations); + proc_create("lock_stat", S_IRUSR | S_IWUSR, NULL, + &proc_lock_stat_operations); #endif return 0;