diff --git a/app.te b/app.te index a6f584d22..8109ddb71 100644 --- a/app.te +++ b/app.te @@ -108,6 +108,9 @@ allow appdomain system_data_file:lnk_file getattr; allow appdomain download_file:dir search; allow appdomain download_file:file r_file_perms; +# Allow read/stat of /data/media files passed by Binder or local socket IPC. +allow appdomain media_rw_data_file:file { read getattr }; + # Allow apps to use the USB Accessory interface. # http://developer.android.com/guide/topics/connectivity/usb/accessory.html # diff --git a/bluetooth.te b/bluetooth.te index 474ca433e..c63dc02e1 100644 --- a/bluetooth.te +++ b/bluetooth.te @@ -47,10 +47,6 @@ allow bluetooth proc_bluetooth_writable:file rw_file_perms; allow bluetooth sdcard_internal:dir create_dir_perms; allow bluetooth sdcard_internal:file create_file_perms; -# Allow reading of media_rw_data_file file descriptors -# passed to bluetooth -allow bluetooth media_rw_data_file:file { read getattr }; - # Allow write access to bluetooth specific properties allow bluetooth bluetooth_prop:property_service set;