tracing: fix file mode of trace and README
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 17 Apr 2009 02:34:30 +0000 (10:34 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 17 Apr 2009 16:04:36 +0000 (18:04 +0200)
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>
kernel/trace/trace.c

index 031c46f11bb96de20e6dacdad2929b28c6bb863c..f681f646aa07d4105dfd337377cc432faded432f 100644 (file)
@@ -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,
This page took 0.064642 seconds and 5 git commands to generate.