diff --git a/app.te b/app.te index 89c81cf899ff44862889aac43c0ce22eb768f8d1..40ec6107939965c8b28c48b7816e2a4f87ea2cb3 100644 --- a/app.te +++ b/app.te @@ -119,11 +119,6 @@ allow appdomain media_rw_data_file:file { read getattr }; # Read and write /data/data/com.android.providers.telephony files passed over Binder. allow appdomain radio_data_file:file { read write getattr }; -# Read and write system app data files passed over Binder. -# Motivating case was /data/data/com.android.settings/cache/*.jpg for -# cropping or taking user photos. -allow untrusted_app system_app_data_file:file { read write getattr }; - # Access SDcard via the fuse mount. allow appdomain fuse:dir create_dir_perms; allow appdomain fuse:file create_file_perms; diff --git a/untrusted_app.te b/untrusted_app.te index e84e3ef577691c04d37f4994a775d9b09890fd76..abcba7884a1c2604cb73cbe4714e8f52a40faa88 100644 --- a/untrusted_app.te +++ b/untrusted_app.te @@ -55,6 +55,11 @@ allow untrusted_app shell_data_file:dir r_dir_perms; # This line needs to be deleted. allow untrusted_app anr_data_file:file r_file_perms; +# Read and write system app data files passed over Binder. +# Motivating case was /data/data/com.android.settings/cache/*.jpg for +# cropping or taking user photos. +allow untrusted_app system_app_data_file:file { read write getattr }; + # # Rules migrated from old app domains coalesced into untrusted_app. # This includes what used to be media_app, shared_app, and release_app.