diff --git a/domain.te b/domain.te index 09134539868fd9e767f2525692df566107769d2e..015274bf0bdc83d073fc299980554ea8f9880581 100644 --- a/domain.te +++ b/domain.te @@ -265,7 +265,7 @@ neverallow { domain -kernel -init -recovery -vold -zygote } { fs_type -sdcard_ty # # Assert that, to the extent possible, we're not loading executable content from -# outside the /system partition except for a few whitelisted domains. +# outside the rootfs or /system partition except for a few whitelisted domains. # neverallow { domain @@ -276,6 +276,11 @@ neverallow { -system_server -zygote } { file_type -system_file -exec_type }:file execute; +neverallow { + domain + -appdomain # for oemfs + -recovery # for /tmp/update_binary in tmpfs +} { fs_type -rootfs }:file execute; # Only the init property service should write to /data/property. neverallow { domain -init } property_data_file:dir { create setattr relabelfrom rename write add_name remove_name rmdir };