2015-06-19 19:47:26 +02:00
|
|
|
# idmap, when executed by installd
|
2016-12-10 04:30:39 +01:00
|
|
|
type idmap, domain;
|
2015-06-19 19:47:26 +02:00
|
|
|
type idmap_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
# Use open file to /data/resource-cache file inherited from installd.
|
|
|
|
allow idmap installd:fd use;
|
|
|
|
allow idmap resourcecache_data_file:file { getattr read write };
|
|
|
|
|
2018-01-24 22:56:28 +01:00
|
|
|
# Ignore reading /proc/<pid>/maps after a fork.
|
|
|
|
dontaudit idmap installd:file read;
|
|
|
|
|
2015-06-19 19:47:26 +02:00
|
|
|
# Open and read from target and overlay apk files passed by argument.
|
|
|
|
allow idmap apk_data_file:file r_file_perms;
|
2015-06-22 09:31:25 +02:00
|
|
|
allow idmap apk_data_file:dir search;
|
2017-04-04 18:30:41 +02:00
|
|
|
|
|
|
|
# Allow apps access to /vendor/app
|
|
|
|
r_dir_file(idmap, vendor_app_file)
|
2017-04-06 01:16:13 +02:00
|
|
|
|
|
|
|
# Allow apps access to /vendor/overlay
|
|
|
|
r_dir_file(idmap, vendor_overlay_file)
|