2016-02-01 20:28:39 +01:00
|
|
|
# profman
|
|
|
|
type profman, domain;
|
2018-09-27 19:21:37 +02:00
|
|
|
type profman_exec, system_file_type, exec_type, file_type;
|
2016-02-01 20:28:39 +01:00
|
|
|
|
2018-08-22 14:30:51 +02:00
|
|
|
allow profman user_profile_data_file:file { getattr read write lock map };
|
2016-02-01 20:28:39 +01:00
|
|
|
|
2016-06-02 19:47:02 +02:00
|
|
|
# Dumping profile info opens the application APK file for pretty printing.
|
2018-08-22 14:30:51 +02:00
|
|
|
allow profman asec_apk_file:file { read map };
|
|
|
|
allow profman apk_data_file:file { getattr read map };
|
2018-04-30 23:20:34 +02:00
|
|
|
allow profman apk_data_file:dir { getattr read search };
|
|
|
|
|
2018-08-22 14:30:51 +02:00
|
|
|
allow profman oemfs:file { read map };
|
2016-06-02 19:47:02 +02:00
|
|
|
# Reading an APK opens a ZipArchive, which unpack to tmpfs.
|
2018-08-22 14:30:51 +02:00
|
|
|
allow profman tmpfs:file { read map };
|
|
|
|
allow profman profman_dump_data_file:file { write map };
|
2016-05-27 21:41:35 +02:00
|
|
|
|
2016-02-01 20:28:39 +01:00
|
|
|
allow profman installd:fd use;
|
|
|
|
|
2017-03-16 02:47:06 +01:00
|
|
|
# Allow profman to analyze profiles for the secondary dex files. These
|
|
|
|
# are application dex files reported back to the framework when using
|
|
|
|
# BaseDexClassLoader.
|
2018-08-22 14:30:51 +02:00
|
|
|
allow profman { privapp_data_file app_data_file }:file { getattr read write lock map };
|
2018-08-03 00:54:23 +02:00
|
|
|
allow profman { privapp_data_file app_data_file }:dir { getattr read search };
|
2017-03-16 02:47:06 +01:00
|
|
|
|
2021-05-19 00:33:08 +02:00
|
|
|
# Allow query ART device config properties
|
|
|
|
get_prop(profman, device_config_runtime_native_prop)
|
|
|
|
get_prop(profman, device_config_runtime_native_boot_prop)
|
|
|
|
|
2016-11-08 18:08:55 +01:00
|
|
|
###
|
|
|
|
### neverallow rules
|
|
|
|
###
|
|
|
|
|
2018-08-03 00:54:23 +02:00
|
|
|
neverallow profman { privapp_data_file app_data_file }:notdevfile_class_set open;
|