2016-02-01 20:28:39 +01:00
|
|
|
# profman
|
|
|
|
type profman, domain;
|
|
|
|
type profman_exec, exec_type, file_type;
|
|
|
|
|
2016-03-28 15:21:39 +02:00
|
|
|
allow profman user_profile_data_file:file { getattr read write lock };
|
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.
|
|
|
|
allow profman asec_apk_file:file { read };
|
2018-04-30 23:20:34 +02:00
|
|
|
allow profman apk_data_file:file { getattr read };
|
|
|
|
allow profman apk_data_file:dir { getattr read search };
|
|
|
|
|
2016-06-02 19:47:02 +02:00
|
|
|
allow profman oemfs:file { read };
|
|
|
|
# Reading an APK opens a ZipArchive, which unpack to tmpfs.
|
|
|
|
allow profman tmpfs:file { read };
|
2016-05-27 21:41:35 +02:00
|
|
|
allow profman profman_dump_data_file:file { write };
|
|
|
|
|
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-03 00:54:23 +02:00
|
|
|
allow profman { privapp_data_file app_data_file }:file { getattr read write lock };
|
|
|
|
allow profman { privapp_data_file app_data_file }:dir { getattr read search };
|
2017-03-16 02:47:06 +01:00
|
|
|
|
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;
|