diff --git a/adbd.te b/adbd.te index cd5df2a80c44deceb8bfbae8d7d2977f5c5ba5a9..b44cf0dd702e9d3f4e862d6c0d7f18452804bdc3 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 c9c5ca201fbce88329e5d5a1d34dde06fcbc5abc..c4ebdf65f6335bbeb074b5256948e733f31ef0f7 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;