Merge "init.rc: Set owner and permissions for cpufreq files"
diff --git a/rootdir/init.rc b/rootdir/init.rc
index f40cd43..7eda6bc 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -384,6 +384,10 @@
 on property:ro.debuggable=1
     start console
 
+# Allow writing to the kernel trace log.  Enabling tracing still requires root.
+on property:ro.debuggable=1
+    chmod 0222 /sys/kernel/debug/tracing/trace_marker
+
 # adbd is controlled via property triggers in init.<platform>.usb.rc
 service adbd /sbin/adbd
     class core