sched: change sched_debug's mode to 0444
PATCH 1/1 sched: change sched_debug's mode to 0444
/proc/sched_debug is read-only.
Signed-off-by Li Zefan <[email protected]>
--- kernel/sched_debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched_debug.c +1 -1
@@ -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 ;
Signature · 1 line
1.5.4.rc3
Ingo Molnar
AppliedQuoted 6 lines · Li Zefan
/proc/sched_debugis read-only.Signed-off-by Li Zefan <[email protected]>--- kernel/sched_debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
applied to tip/sched/urgent, thanks!
Ingo