1# profman 2type profman, domain; 3type profman_exec, exec_type, file_type; 4 5allow profman user_profile_data_file:file { getattr read write lock }; 6 7# Dumping profile info opens the application APK file for pretty printing. 8allow profman asec_apk_file:file { read }; 9allow profman apk_data_file:file { read }; 10allow profman oemfs:file { read }; 11# Reading an APK opens a ZipArchive, which unpack to tmpfs. 12allow profman tmpfs:file { read }; 13allow profman profman_dump_data_file:file { write }; 14 15allow profman installd:fd use; 16 17# Allow profman to analyze profiles for the secondary dex files. These 18# are application dex files reported back to the framework when using 19# BaseDexClassLoader. 20allow profman app_data_file:file { getattr read write lock }; 21 22### 23### neverallow rules 24### 25 26neverallow profman app_data_file:notdevfile_class_set open; 27