Merge "Sepolicy: Fix perfprofd permissions"

This commit is contained in:
Treehugger Robot 2018-05-14 22:49:10 +00:00 committed by Gerrit Code Review
commit bdac534cc0
2 changed files with 4 additions and 1 deletions

View file

@ -50,6 +50,9 @@ domain_auto_trans(statsd, perfetto_exec, perfetto)
allow statsd {
app_api_service
incident_service
userdebug_or_eng(`
perfprofd_service
')
statscompanion_service
system_api_service
}:service_manager find;

View file

@ -389,7 +389,7 @@ allow system_server perfetto:fd use;
# Allow dropbox to read /data/misc/perfprofd. Only the fd is sent over binder.
userdebug_or_eng(`
allow system_server perfprofd_data_file:file read;
allow system_server perfprofd_data_file:file { getattr read };
allow system_server perfprofd:fd use;
')