Skip to content
Snippets Groups Projects
Commit fb7fc4fd authored by Earl Ou's avatar Earl Ou
Browse files

Fix SELinux settings for tracing during boot.

Service boottrace runs atrace out of shell context for tracing during
boot. Therefore, we need the same permission set in shell.te to run atrace
in boottrace service.

Bug: 34094010
Test: None
Change-Id: I94b2c3f9a74da377b0467112ebd4e1ee658847a4
parent 1e3c61c3
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,11 @@ userdebug_or_eng(`
allow atrace boottrace_data_file:dir search;
allow atrace boottrace_data_file:file r_file_perms;
# atrace reads the files in /sys/kernel/debug/tracing/
# Allow atrace to access tracefs.
allow atrace debugfs_tracing:dir r_dir_perms;
allow atrace debugfs_tracing:file r_file_perms;
allow atrace tracing_shell_writable:file rw_file_perms;
allow atrace debugfs_trace_marker:file getattr;
# atrace sets debug.atrace.* properties
set_prop(atrace, debug_prop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment