diff --git a/domain.te b/domain.te index b0d018e3ae4ac212b2a1c848c8340126c51d9f79..dfc5558865dad2e4d0396b6bca6d9fe28a3a7023 100644 --- a/domain.te +++ b/domain.te @@ -271,9 +271,12 @@ neverallow { neverallow { domain userdebug_or_eng(`-shell') } nativetest_data_file:file no_x_file_perms; -# Only the init property service should write to /data/property. +# Only the init property service should write to /data/property and /dev/__properties__ neverallow { domain -init } property_data_file:dir no_w_dir_perms; neverallow { domain -init } property_data_file:file no_w_file_perms; +neverallow { domain -init } property_type:file no_w_file_perms; +neverallow { domain -init } properties_device:file no_w_file_perms; +neverallow { domain -init } properties_serial:file no_w_file_perms; # Only recovery should be doing writes to /system neverallow { domain -recovery } { system_file exec_type }:dir_file_class_set