From 34a8e121124c79e8daa60aebb065377280335bcc Mon Sep 17 00:00:00 2001 From: Alex Klyubin <klyubin@google.com> Date: Tue, 10 Sep 2013 11:48:03 -0700 Subject: [PATCH] Permit installd to unlink all types of data_file_type. This enables installd to uninstall or clear data of installed apps whose data directory contains unusual file types, such as FIFO. Bug: 10680357 (cherry picked from commit 839af9edb5f410727c15b8f3dd377dfb3a9d6e22) Change-Id: I5715f7d6d3214896ad0456d614b052cf5fb79eef --- installd.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installd.te b/installd.te index fae130a72..68a0d068c 100644 --- a/installd.te +++ b/installd.te @@ -11,7 +11,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 lnk_file sock_file } { getattr unlink }; +allow installd data_file_type:{ file_class_set } { 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; -- GitLab