1# profman 2type profman, domain; 3type profman_exec, system_file_type, exec_type, file_type; 4 5allow profman user_profile_data_file:file { getattr read write lock map }; 6 7# Dumping profile info opens the application APK file for pretty printing. 8allow profman asec_apk_file:file { read map }; 9allow profman apk_data_file:file { getattr read map }; 10allow profman apk_data_file:dir { getattr read search }; 11 12allow profman oemfs:file { read map }; 13# Reading an APK opens a ZipArchive, which unpack to tmpfs. 14allow profman tmpfs:file { read map }; 15allow profman profman_dump_data_file:file { write map }; 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 { privapp_data_file app_data_file }:file { getattr read write lock map }; 21allow profman { privapp_data_file app_data_file }:dir { getattr read search }; 22 23# Allow query ART device config properties 24get_prop(profman, device_config_runtime_native_prop) 25get_prop(profman, device_config_runtime_native_boot_prop) 26 27### 28### neverallow rules 29### 30 31neverallow profman app_data_file_type:notdevfile_class_set open; 32