diff --git a/app.te b/app.te index 7cd8c5a2b0ae02b8963a30451b783b8e57e20d99..65d710a07887e7614663805dee48664e42d96647 100644 --- a/app.te +++ b/app.te @@ -164,8 +164,9 @@ allow appdomain surfaceflinger:unix_stream_socket { read write setopt }; allow appdomain app_data_file:dir create_dir_perms; allow appdomain app_data_file:notdevfile_class_set create_file_perms; -# Read/write data files created by the platform apps. -allow appdomain platform_app_data_file:file rw_file_perms; +# Read/write data files created by the platform apps if they +# were passed to the app via binder or local IPC. Do not allow open. +allow appdomain platform_app_data_file:file { read write }; # lib subdirectory of /data/data dir is system-owned. allow appdomain system_data_file:dir r_dir_perms;