Skip to content
Snippets Groups Projects
Commit e843044c authored by Andreas Gampe's avatar Andreas Gampe
Browse files

sepolicy: Allow postinstall_dexopt /vendor/app access

Follow-up to commit 1b5f81a2.

Bug: 36681210
Bug: 37158297
Test: lunch sailfish-userdebug && m
Test: Manually run OTA
Change-Id: Ifb4808c9255842a51a660c07ffd924cef52024c5
parent c051300e
No related branches found
No related tags found
No related merge requests found
...@@ -686,6 +686,7 @@ full_treble_only(` ...@@ -686,6 +686,7 @@ full_treble_only(`
-idmap -idmap
-init -init
-installd -installd
-postinstall_dexopt
-system_server -system_server
} vendor_app_file:dir { open read getattr search }; } vendor_app_file:dir { open read getattr search };
...@@ -696,6 +697,7 @@ full_treble_only(` ...@@ -696,6 +697,7 @@ full_treble_only(`
-idmap -idmap
-init -init
-installd -installd
-postinstall_dexopt
-system_server -system_server
} vendor_app_file:{ file lnk_file } r_file_perms; } vendor_app_file:{ file lnk_file } r_file_perms;
......
...@@ -17,6 +17,8 @@ allow postinstall_dexopt tmpfs:file read; ...@@ -17,6 +17,8 @@ allow postinstall_dexopt tmpfs:file read;
# Read app data (APKs) as input to dex2oat. # Read app data (APKs) as input to dex2oat.
r_dir_file(postinstall_dexopt, apk_data_file) r_dir_file(postinstall_dexopt, apk_data_file)
# Read vendor app data (APKs) as input to dex2oat.
r_dir_file(postinstall_dexopt, vendor_app_file)
# Access to app oat directory. # Access to app oat directory.
r_dir_file(postinstall_dexopt, dalvikcache_data_file) r_dir_file(postinstall_dexopt, dalvikcache_data_file)
......
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