Skip to content

Commit

Permalink
sched: change sched_debug's mode to 0444
Browse files Browse the repository at this point in the history
Impact: change /proc/sched/debug from rw-r--r-- to r--r--r--

/proc/sched_debug is read-only.

Signed-off-by: Li Zefan <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Oct 30, 2008
1 parent e946217 commit a9cf4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static int __init init_sched_debug_procfs(void)
{
struct proc_dir_entry *pe;

pe = proc_create("sched_debug", 0644, NULL, &sched_debug_fops);
pe = proc_create("sched_debug", 0444, NULL, &sched_debug_fops);
if (!pe)
return -ENOMEM;
return 0;
Expand Down

0 comments on commit a9cf4dd

Please sign in to comment.