Allow dex2oat access to symlinks in APEXes to find DCLA libs.
With the introduction of DCLA (/apex/sharedlibs APEX), .so files can be symlinked into that APEX, so we need to allow reading symlinks to be able to link the dex2oat binary successfully. This fixes "CANNOT LINK EXECUTABLE" errors for dex2oat during OTA preopting. Test: Apply an OTA manually and check logs for errors Bug: 291974157 Change-Id: I9eca91c94e8d33fe618783cea262ea3881957620
This commit is contained in:
parent
d4908949ef
commit
502a036436
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ allow dex2oat postinstall_file:file { execute getattr open };
|
|||
|
||||
# Allow dex2oat access to /postinstall/apex.
|
||||
allow dex2oat postinstall_apex_mnt_dir:dir { getattr search };
|
||||
allow dex2oat postinstall_apex_mnt_dir:file r_file_perms;
|
||||
allow dex2oat postinstall_apex_mnt_dir:{ file lnk_file } r_file_perms;
|
||||
|
||||
# Allow dex2oat access to files in /data/ota.
|
||||
allow dex2oat ota_data_file:dir ra_dir_perms;
|
||||
|
|
Loading…
Reference in a new issue