2012-06-07 03:12:48 +02:00
|
|
|
## Permissions to allow system-wide tracing to the kernel trace buffer.
|
|
|
|
##
|
2014-09-30 17:09:10 +02:00
|
|
|
on early-boot
|
2012-06-07 03:12:48 +02:00
|
|
|
|
|
|
|
# Allow writing to the kernel trace log.
|
|
|
|
chmod 0222 /sys/kernel/debug/tracing/trace_marker
|
|
|
|
|
|
|
|
# Allow the shell group to enable (some) kernel tracing.
|
|
|
|
chown root shell /sys/kernel/debug/tracing/trace_clock
|
|
|
|
chown root shell /sys/kernel/debug/tracing/buffer_size_kb
|
|
|
|
chown root shell /sys/kernel/debug/tracing/options/overwrite
|
2013-12-05 07:14:30 +01:00
|
|
|
chown root shell /sys/kernel/debug/tracing/options/print-tgid
|
2012-06-07 03:12:48 +02:00
|
|
|
chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
|
|
|
|
chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
|
|
|
|
chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
|
|
|
|
chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
|
2012-10-16 02:04:47 +02:00
|
|
|
chown root shell /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
|
2012-06-07 03:12:48 +02:00
|
|
|
chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
|
|
|
|
chown root shell /sys/kernel/debug/tracing/tracing_on
|
|
|
|
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/trace_clock
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/buffer_size_kb
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/options/overwrite
|
2013-12-05 07:14:30 +01:00
|
|
|
chmod 0664 /sys/kernel/debug/tracing/options/print-tgid
|
2012-06-07 03:12:48 +02:00
|
|
|
chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
|
2012-10-16 02:04:47 +02:00
|
|
|
chmod 0664 /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
|
2012-06-07 03:12:48 +02:00
|
|
|
chmod 0664 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
|
|
|
|
chmod 0664 /sys/kernel/debug/tracing/tracing_on
|
|
|
|
|
|
|
|
# Allow only the shell group to read and truncate the kernel trace.
|
|
|
|
chown root shell /sys/kernel/debug/tracing/trace
|
|
|
|
chmod 0660 /sys/kernel/debug/tracing/trace
|