From 7585fc64003a2caf56643e80fbc9984903cf3d2d Mon Sep 17 00:00:00 2001 From: Haiqing Jiang <hqjiang1988@gmail.com> Date: Fri, 27 Jul 2012 11:23:10 -0700 Subject: [PATCH] Platform app domain sdcard accesses --- app.te | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app.te b/app.te index df0f5df35..85de816f6 100644 --- a/app.te +++ b/app.te @@ -22,9 +22,6 @@ allow platform_app cache_file:file create_file_perms; allow platform_app shell_data_file:dir search; allow platform_app shell_data_file:file { open getattr read }; allow platform_app shell_data_file:lnk_file read; -# Access the sdcard. -allow platform_app sdcard:dir create_dir_perms; -allow platform_app sdcard:file create_file_perms; # Populate /data/app/vmdl*.tmp file created by system server. allow platform_app apk_tmp_file:file rw_file_perms; @@ -41,9 +38,6 @@ 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; -# Access sdcard. -allow media_app sdcard:dir create_dir_perms; -allow media_app sdcard:file create_file_perms; # Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid allow media_app qtaguid_proc:file rw_file_perms; allow media_app qtaguid_device:chr_file r_file_perms; @@ -86,6 +80,9 @@ net_domain(browser_app) # App sandbox file accesses. allow platformappdomain platform_app_data_file:dir create_dir_perms; allow platformappdomain platform_app_data_file:notdevfile_class_set create_file_perms; +# App sdcard file accesses +allow platformappdomain sdcard:dir create_dir_perms; +allow platformappdomain sdcard:file create_file_perms; # # Untrusted apps. -- GitLab