Skip to content

Commit

Permalink
tracing: fix file mode of trace and README
Browse files Browse the repository at this point in the history
trace is read-write and README is read-only.

[ Impact: fix /debug/tracing/ file permissions. ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49E7EAB6.4070605@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Apr 17, 2009
1 parent 76aa811 commit 339ae5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -4002,7 +4002,7 @@ static __init int tracer_init_debugfs(void)
trace_create_file("available_tracers", 0444, d_tracer,
&global_trace, &show_traces_fops);

trace_create_file("current_tracer", 0444, d_tracer,
trace_create_file("current_tracer", 0644, d_tracer,
&global_trace, &set_tracer_fops);

trace_create_file("tracing_max_latency", 0644, d_tracer,
Expand All @@ -4011,7 +4011,7 @@ static __init int tracer_init_debugfs(void)
trace_create_file("tracing_thresh", 0644, d_tracer,
&tracing_thresh, &tracing_max_lat_fops);

trace_create_file("README", 0644, d_tracer,
trace_create_file("README", 0444, d_tracer,
NULL, &tracing_readme_fops);

trace_create_file("trace_pipe", 0444, d_tracer,
Expand Down

0 comments on commit 339ae5d

Please sign in to comment.