Merge "Allow gmscore to write to /cache"

am: 4c78a608f9

Change-Id: I6c004da5909958d87700079f6630413b4bf08afa
This commit is contained in:
Ashwini Oruganti 2019-12-18 10:02:29 -08:00 committed by android-build-merger
commit c1420961e8

View file

@ -114,6 +114,12 @@ allow gmscore_app stats_service:service_manager find;
allow gmscore_app shell_data_file:file r_file_perms;
allow gmscore_app shell_data_file:dir r_dir_perms;
# Write to /cache.
allow gmscore_app { cache_file cache_recovery_file }:dir create_dir_perms;
allow gmscore_app { cache_file cache_recovery_file }:file create_file_perms;
# /cache is a symlink to /data/cache on some devices. Allow reading the link.
allow gmscore_app cache_file:lnk_file r_file_perms;
# Write to /data/ota_package for OTA packages.
allow gmscore_app ota_package_file:dir rw_dir_perms;
allow gmscore_app ota_package_file:file create_file_perms;