Skip to content
Snippets Groups Projects
Commit 45206a38 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "Allow installd to unlink /data/media files and search /data/app-asec."

parents 4bdd13e4 d30060a0
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,9 @@ selinux_check_context(installd) ...@@ -17,6 +17,9 @@ selinux_check_context(installd)
# Read /seapp_contexts and /data/security/seapp_contexts # Read /seapp_contexts and /data/security/seapp_contexts
security_access_policy(installd) security_access_policy(installd)
# Search /data/app-asec.
allow installd asec_image_file:dir search;
# Create /data/user and /data/user/0 if necessary. # Create /data/user and /data/user/0 if necessary.
# Also required to initially create /data/data subdirectories # Also required to initially create /data/data subdirectories
# and lib symlinks before the setfilecon call. May want to # and lib symlinks before the setfilecon call. May want to
...@@ -26,6 +29,7 @@ allow installd system_data_file:lnk_file { create setattr unlink }; ...@@ -26,6 +29,7 @@ allow installd system_data_file:lnk_file { create setattr unlink };
# Upgrade /data/media for multi-user if necessary. # Upgrade /data/media for multi-user if necessary.
allow installd media_rw_data_file:dir create_dir_perms; allow installd media_rw_data_file:dir create_dir_perms;
allow installd media_rw_data_file:file unlink;
# restorecon new /data/media directory. # restorecon new /data/media directory.
allow installd system_data_file:dir relabelfrom; allow installd system_data_file:dir relabelfrom;
allow installd media_rw_data_file:dir relabelto; allow installd media_rw_data_file:dir relabelto;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment