Sepolicy: Give system server fd rights to perfprofd

So that perfprofd can send larger packets to dropbox.

Follow-up of commit 3fa95acb1e.

Bug: 73175642
Test: m
Test: manual
Change-Id: I88d1f83962243589909ff1ce3d02195e7c494256
This commit is contained in:
Andreas Gampe 2018-03-19 13:31:38 -07:00
parent 3bf4f641fe
commit c9df843773

View file

@ -379,6 +379,12 @@ allow system_server incident_data_file:file read;
allow system_server perfetto_traces_data_file:file read; allow system_server perfetto_traces_data_file:file read;
allow system_server perfetto:fd use; 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:fd use;
')
# Manage /data/backup. # Manage /data/backup.
allow system_server backup_data_file:dir create_dir_perms; allow system_server backup_data_file:dir create_dir_perms;
allow system_server backup_data_file:file create_file_perms; allow system_server backup_data_file:file create_file_perms;