From f6ca1605bc5d8feb06e6cc14bd2a69af172b75ed Mon Sep 17 00:00:00 2001
From: Haiqing Jiang <hqjiang1988@gmail.com>
Date: Fri, 27 Jul 2012 13:13:19 -0700
Subject: [PATCH] installd unlink platform_app_data_file

---
 installd.te | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/installd.te b/installd.te
index ce9122bd9..2a87eb7b1 100644
--- a/installd.te
+++ b/installd.te
@@ -10,7 +10,7 @@ allow installd system_data_file:lnk_file create;
 allow installd dalvikcache_data_file:file create_file_perms;
 allow installd data_file_type:dir create_dir_perms;
 allow installd data_file_type:dir { relabelfrom relabelto };
-allow installd data_file_type:file { getattr unlink };
+allow installd data_file_type:{ file lnk_file } { getattr unlink };
 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;
@@ -20,5 +20,3 @@ dontaudit installd self:capability sys_admin;
 selinux_check_context(installd)
 # Read /seapp_contexts, presently on the rootfs.
 allow installd rootfs:file r_file_perms;
-# Unlink app_data_file
-allow installd app_data_file:lnk_file unlink;
-- 
GitLab