Skip to content
Snippets Groups Projects
Commit 6ff84003 authored by Calin Juravle's avatar Calin Juravle Committed by Gerrit Code Review
Browse files

Merge "Allow system server to record its own profile"

parents bba94f80 71d8467b
No related branches found
No related tags found
No related merge requests found
...@@ -773,9 +773,14 @@ allow system_server netd:bpf map_read; ...@@ -773,9 +773,14 @@ allow system_server netd:bpf map_read;
# Allow system_server to open profile snapshots for read. # Allow system_server to open profile snapshots for read.
# System server never reads the actual content. It passes the descriptor to # System server never reads the actual content. It passes the descriptor to
# to privileged apps which acquire the permissions to inspect the profiles. # to privileged apps which acquire the permissions to inspect the profiles.
allow system_server user_profile_data_file:dir { search }; allow system_server user_profile_data_file:dir { getattr search };
allow system_server user_profile_data_file:file { getattr open read }; allow system_server user_profile_data_file:file { getattr open read };
# On userdebug build we may profile system server. Allow it to write and create its own profile.
userdebug_or_eng(`
allow system_server user_profile_data_file:file create_file_perms;
')
userdebug_or_eng(` userdebug_or_eng(`
# Allow system server to notify mediaextractor of the plugin update. # Allow system server to notify mediaextractor of the plugin update.
allow system_server mediaextractor_update_service:service_manager find; allow system_server mediaextractor_update_service:service_manager find;
......
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