Skip to content

Commit a9cf4dd

Browse files
Li ZefanIngo Molnar
authored andcommitted
sched: change sched_debug's mode to 0444
Impact: change /proc/sched/debug from rw-r--r-- to r--r--r-- /proc/sched_debug is read-only. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent e946217 commit a9cf4dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/sched_debug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static int __init init_sched_debug_procfs(void)
319319
{
320320
struct proc_dir_entry *pe;
321321

322-
pe = proc_create("sched_debug", 0644, NULL, &sched_debug_fops);
322+
pe = proc_create("sched_debug", 0444, NULL, &sched_debug_fops);
323323
if (!pe)
324324
return -ENOMEM;
325325
return 0;

0 commit comments

Comments
 (0)