Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bad0221 authored by Ryan Zuklie's avatar Ryan Zuklie
Browse files

Add permissions to modify raw_syscall filters.

These are to be used by traced in order to support tracing only a subset
of all syscalls when using raw_syscall ftrace events. Currently, the
associated files are only accessible in userdebug via selinux, so the
corresponding chmods are userdebug-only too.

Test: locally on-device with perfetto
Change-Id: Ifc6def54ad269c3e09eda268c697b89f2b940baf
parent 44732cde
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18,3 +18,9 @@ on post-fs
    chmod 0666 /sys/kernel/tracing/events/filemap/enable
    chmod 0666 /sys/kernel/debug/tracing/events/filemap/enable

    # Allow traced_probes to use the raw_syscall filters to trace only a subset
    # of syscalls.
    chmod 0666 /sys/kernel/tracing/events/raw_syscalls/sys_enter/filter
    chmod 0666 /sys/kernel/debug/tracing/events/raw_syscalls/sys_enter/filter
    chmod 0666 /sys/kernel/tracing/events/raw_syscalls/sys_exit/filter
    chmod 0666 /sys/kernel/debug/tracing/events/raw_syscalls/sys_exit/filter