提交 339ae5d3 编写于 作者: L Li Zefan 提交者: Ingo Molnar

tracing: fix file mode of trace and README

trace is read-write and README is read-only.

[ Impact: fix /debug/tracing/ file permissions. ]
Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
Acked-by: NFrederic Weisbecker <fweisbec@gmail.com>
Acked-by: NSteven Rostedt <rostedt@goodmis.org>
LKML-Reference: <49E7EAB6.4070605@cn.fujitsu.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 76aa8111
......@@ -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,
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册