diff --git a/adbd.te b/adbd.te index 61cb4a648c44f42a1e61efc3bbc680036bb71900..362318034c33bcd07265768acb0f42bfdb595408 100644 --- a/adbd.te +++ b/adbd.te @@ -36,7 +36,8 @@ allow adbd shell_data_file:file create_file_perms; # adb push/pull sdcard. allow adbd tmpfs:dir search; -allow adbd rootfs:lnk_file r_file_perms; +allow adbd rootfs:lnk_file r_file_perms; # /sdcard symlink +allow adbd tmpfs:lnk_file r_file_perms; # /mnt/sdcard symlink allow adbd sdcard_type:dir create_dir_perms; allow adbd sdcard_type:file create_file_perms; diff --git a/app.te b/app.te index 105ae135f67e961071e31ebdaebf902db3af94b6..fcdc7c4eab506e1189f34af7227350e095c490ec 100644 --- a/app.te +++ b/app.te @@ -33,8 +33,9 @@ allow appdomain cgroup:file rw_file_perms; allow appdomain dalvikcache_data_file:dir { search getattr }; allow appdomain dalvikcache_data_file:file r_file_perms; -# Read the /sdcard symlink +# Read the /sdcard and /mnt/sdcard symlinks allow appdomain rootfs:lnk_file r_file_perms; +allow appdomain tmpfs:lnk_file r_file_perms; # Search /storage/emulated tmpfs mount. allow appdomain tmpfs:dir r_dir_perms;