From 86c76890dee12089eaeb0c67314c864ac830386b Mon Sep 17 00:00:00 2001
From: Jeff Sharkey <jsharkey@android.com>
Date: Fri, 16 Dec 2016 14:54:56 -0700
Subject: [PATCH] Allow installd to measure size of dexopt links.

avc: denied { getattr } for path="/data/dalvik-cache/arm64/system@framework@boot-core-libart.oat" dev="sda35" ino=1581062 scontext=u:r:installd:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=lnk_file permissive=0

Test: builds, boots, quota stats match manual stats
Bug: 27948817
Change-Id: I65fb581a4732e03c46ac705f6693080c5f3be184
---
 public/installd.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/installd.te b/public/installd.te
index 246fffa9e..bf83b9d82 100644
--- a/public/installd.te
+++ b/public/installd.te
@@ -58,6 +58,7 @@ allow installd install_data_file:file create_file_perms;
 # Create files under /data/dalvik-cache.
 allow installd dalvikcache_data_file:dir create_dir_perms;
 allow installd dalvikcache_data_file:file create_file_perms;
+allow installd dalvikcache_data_file:lnk_file getattr;
 
 # Create files under /data/resource-cache.
 allow installd resourcecache_data_file:dir rw_dir_perms;
-- 
GitLab