From ad7a0ad2ce259de8146fe79c21e5f7fac2569b6f Mon Sep 17 00:00:00 2001 From: Patrick Tjin <pattjin@google.com> Date: Fri, 13 May 2016 15:22:44 -0700 Subject: [PATCH] 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 --- file_contexts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/file_contexts b/file_contexts index 75edcc9de..c4f8f6a4b 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 # -- GitLab