Skip to content
Snippets Groups Projects
Commit 7b229405 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "sepolicy: Add mmap for profman"

parents 6026a4ad 7cab455f
No related branches found
No related tags found
No related merge requests found
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
type profman, domain; type profman, domain;
type profman_exec, exec_type, file_type; type profman_exec, exec_type, file_type;
allow profman user_profile_data_file:file { getattr read write lock }; allow profman user_profile_data_file:file { getattr read write lock map };
# Dumping profile info opens the application APK file for pretty printing. # Dumping profile info opens the application APK file for pretty printing.
allow profman asec_apk_file:file { read }; allow profman asec_apk_file:file { read map };
allow profman apk_data_file:file { getattr read }; allow profman apk_data_file:file { getattr read map };
allow profman apk_data_file:dir { getattr read search }; allow profman apk_data_file:dir { getattr read search };
allow profman oemfs:file { read }; allow profman oemfs:file { read map };
# Reading an APK opens a ZipArchive, which unpack to tmpfs. # Reading an APK opens a ZipArchive, which unpack to tmpfs.
allow profman tmpfs:file { read }; allow profman tmpfs:file { read map };
allow profman profman_dump_data_file:file { write }; allow profman profman_dump_data_file:file { write map };
allow profman installd:fd use; allow profman installd:fd use;
# Allow profman to analyze profiles for the secondary dex files. These # Allow profman to analyze profiles for the secondary dex files. These
# are application dex files reported back to the framework when using # are application dex files reported back to the framework when using
# BaseDexClassLoader. # BaseDexClassLoader.
allow profman { privapp_data_file app_data_file }:file { getattr read write lock }; allow profman { privapp_data_file app_data_file }:file { getattr read write lock map };
allow profman { privapp_data_file app_data_file }:dir { getattr read search }; allow profman { privapp_data_file app_data_file }:dir { getattr read search };
### ###
......
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