Skip to content
Snippets Groups Projects
Commit 289f91ac authored by Stephen Smalley's avatar Stephen Smalley Committed by Android Git Automerger
Browse files

am 5b852b53: am 62508bf4: Allow apps to execute the shell or system commands unconditionally.

* commit '5b852b53':
  Allow apps to execute the shell or system commands unconditionally.
parents 23eb5be2 5b852b53
Branches
Tags
No related merge requests found
...@@ -147,6 +147,10 @@ allow appdomain platform_app_data_file:file { getattr read write }; ...@@ -147,6 +147,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:dir r_dir_perms;
allow appdomain system_data_file:file { execute open }; 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). # Read/write wallpaper file (opened by system).
allow appdomain wallpaper_file:file { read write }; allow appdomain wallpaper_file:file { read write };
......
...@@ -26,6 +26,10 @@ allow appdomain file_type:dir_file_class_set getattr; ...@@ -26,6 +26,10 @@ allow appdomain file_type:dir_file_class_set getattr;
allow appdomain dev_type:dir_file_class_set getattr; allow appdomain dev_type:dir_file_class_set getattr;
allow appdomain fs_type:dir_file_class_set getattr; allow appdomain fs_type:dir_file_class_set getattr;
# 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;
# Read permission over link file to devices. # Read permission over link file to devices.
allow appdomain dev_type:lnk_file read; allow appdomain dev_type:lnk_file read;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment