From 4387956f2607f9836e13267c10c5a5d0929eeb4c Mon Sep 17 00:00:00 2001
From: Geremy Condra <gcondra@google.com>
Date: Wed, 27 Mar 2013 20:59:14 -0700
Subject: [PATCH] Add the ability to stat files under /cache for media_app.

This feels like a hidden bug- it shouldn't be trying to
stat everything under /cache anyways- but allowing for now.

Change-Id: Ib5ddfbb408c9f0b6c6218c78a678fcdb09360ccd
---
 app.te | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app.te b/app.te
index 0533f327c..6188ef0bb 100644
--- a/app.te
+++ b/app.te
@@ -41,6 +41,12 @@ allow media_app mtp_device:chr_file rw_file_perms;
 # Write to /cache.
 allow media_app cache_file:dir rw_dir_perms;
 allow media_app cache_file:file create_file_perms;
+# Stat /cache/lost+found
+allow media_app unlabeled:file getattr;
+allow media_app unlabeled:dir getattr;
+# Stat /cache/backup
+allow media_app cache_backup_file:file getattr;
+allow media_app cache_backup_file:dir getattr;
 
 # Apps signed with the shared key.
 type shared_app, domain;
-- 
GitLab