diff --git a/app.te b/app.te index 8d84e590b4338c84516cb8ea09b5c4333e1d03a5..eaca76c7d55ea4bbd0feda000df625045bcccedc 100644 --- a/app.te +++ b/app.te @@ -132,6 +132,10 @@ allow appdomain platform_app_data_file:file { getattr read write }; allow appdomain system_data_file:dir r_dir_perms; allow appdomain system_data_file:file { execute open }; +# Execute the shell or other system executables. +allow appdomain shell_exec:file rx_file_perms; +allow appdomain system_file:file rx_file_perms; + # Read/write wallpaper file (opened by system). allow appdomain wallpaper_file:file { read write }; diff --git a/cts.te b/cts.te index 3371410d6c624de4698592ec288f2a2931b09de2..3a414788f7f13ac76e3ad699b1aaa3bd9b7875c8 100644 --- a/cts.te +++ b/cts.te @@ -23,10 +23,6 @@ allow appdomain file_type:dir_file_class_set getattr; allow appdomain dev_type:dir_file_class_set getattr; allow appdomain fs_type:dir_file_class_set getattr; -# Execute the shell or other system executables. -allow appdomain shell_exec:file rx_file_perms; -allow appdomain system_file:file rx_file_perms; - # Accesses to apk_tmp_file and shell_data_file allow appdomain apk_tmp_file:file rw_file_perms; allow appdomain shell_data_file:file r_file_perms;