From a77068b3dedca0b6038e0bbdd03c81276b2e7dc0 Mon Sep 17 00:00:00 2001
From: Geremy Condra <gcondra@google.com>
Date: Wed, 11 Sep 2013 13:26:13 -0700
Subject: [PATCH] Switch installd to use r_dir_perms for download_file dirs.

This fixes an issue in which installd can't open download
file dirs.

Bug: 10710450
Change-Id: I1dd08188a88428143c4bb914e872175dc3755597
---
 installd.te | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/installd.te b/installd.te
index 68a0d068c..f8d30b779 100644
--- a/installd.te
+++ b/installd.te
@@ -16,7 +16,7 @@ allow installd apk_data_file:file r_file_perms;
 allow installd apk_tmp_file:file r_file_perms;
 allow installd system_file:file x_file_perms;
 allow installd cgroup:dir create_dir_perms;
-allow installd download_file:dir { read getattr };
+allow installd download_file:dir { r_dir_perms };
 dontaudit installd self:capability sys_admin;
 # Check validity of SELinux context before use.
 selinux_check_context(installd)
-- 
GitLab