Skip to content
Snippets Groups Projects
Commit a64b6850 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Allow installd to delete from preloads/file_cache

When clearing cache, installd should be able to search for and delete
files in /data/preloads/file_cache

Test: Manually trigger installd freeCache
Bug: 31008665
Change-Id: I4c345cc8b0f7a6a8702a55f4720d21283c9d502a
parent 38dc1e22
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,11 @@ allow installd permission_service:service_manager find; ...@@ -130,6 +130,11 @@ allow installd permission_service:service_manager find;
allow installd block_device:dir { search }; allow installd block_device:dir { search };
allow installd labeledfs:filesystem { quotaget quotamod }; allow installd labeledfs:filesystem { quotaget quotamod };
# Allow installd to delete from /data/preloads when trimming data caches
# TODO b/34690396 Remove when time-based purge policy for preloads is implemented in system_server
allow installd preloads_data_file:file { r_file_perms unlink };
allow installd preloads_data_file:dir { r_dir_perms write remove_name rmdir };
### ###
### Neverallow rules ### Neverallow rules
### ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment