sepolicy: add support for devices without cache partition
Adds the rules for /data/cache used for devices which do
not have a cache partition.
Bug: 28747374
Change-Id: I7c749e7692c9b8eab02029bbae5a3c78585030da
diff --git a/file_contexts b/file_contexts
index 75edcc9..c4f8f6a 100644
--- a/file_contexts
+++ b/file_contexts
@@ -355,6 +355,13 @@
# LocalTransport (backup) uses this subtree
/cache/backup(/.*)? u:object_r:cache_private_backup_file:s0
+/data/cache(/.*)? u:object_r:cache_file:s0
+/data/cache/recovery(/.*)? u:object_r:cache_recovery_file:s0
+# General backup/restore interchange with apps
+/data/cache/backup_stage(/.*)? u:object_r:cache_backup_file:s0
+# LocalTransport (backup) uses this subtree
+/data/cache/backup(/.*)? u:object_r:cache_private_backup_file:s0
+
#############################
# sysfs files
#