Skip to content

Commit d180e5c

Browse files
committed
Relax ACLs for kprobe-related files in tracing sysfs
Among the /sys/kernel/tracing files that are already writable, kprobes-related files and folders were not. This would prevent anyone except root to read or write these files. This patch extends the ACL permissions of kprobe event files with read and write permissions to everyone, aiming at allowing traced (part of Perfetto) and shell to use this kernel tracing feature. This extension is limited to userdebug builds. Bug: 359542775 Test: traced succeeds in creating and activating kprobe events Change-Id: I6aa13e34987a5bf89a5a96b41d64dbb498aca0ae Signed-off-by: Alessio Balsini <balsini@google.com>
1 parent d449797 commit d180e5c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmds/atrace/atrace_userdebug.rc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ on post-fs
2424
chmod 0666 /sys/kernel/debug/tracing/events/raw_syscalls/sys_enter/filter
2525
chmod 0666 /sys/kernel/tracing/events/raw_syscalls/sys_exit/filter
2626
chmod 0666 /sys/kernel/debug/tracing/events/raw_syscalls/sys_exit/filter
27+
28+
# Allow traced_probes to use the kprobe interface
29+
chmod 0666 /sys/kernel/debug/tracing/kprobe_events
30+
chmod 0666 /sys/kernel/tracing/kprobe_events

0 commit comments

Comments
 (0)