Skip to content
Snippets Groups Projects
Commit 07ddddaf authored by Bowgo Tsai's avatar Bowgo Tsai Committed by Jeff Vander Stoep
Browse files

Adding /odm support

/odm partition isn't mandatory and the following symlinks will exist on
a device without /odm partition.

  /odm/app ->/vendor/odm/app
  /odm/bin ->/vendor/odm/bin
  /odm/etc ->/vendor/odm/etc
  /odm/firmware ->/vendor/odm/firmware
  /odm/framework ->/vendor/odm/framework
  /odm/lib -> /vendor/odm/lib
  /odm/lib64 -> /vendor/odm/lib64
  /odm/overlay -> /vendor/odm/overlay
  /odm/priv-app -> /vendor/odm/priv-app

This CL allows all domains to access the symlinks, also removes the
Treble compliance neverallows on them because the actual restrictions
should apply to the real path directly.

Bug: 70678783
Test: boot a device
Change-Id: If1522780a13710d8a592272dc688685cbae29f52
(cherry picked from commit dd6efea2)
parent 37925fdb
No related branches found
No related tags found
No related merge requests found
...@@ -180,8 +180,9 @@ allow domain vendor_configs_file:dir r_dir_perms; ...@@ -180,8 +180,9 @@ allow domain vendor_configs_file:dir r_dir_perms;
allow domain vendor_configs_file:file { read open getattr }; allow domain vendor_configs_file:file { read open getattr };
full_treble_only(` full_treble_only(`
# Allow all domains to be able to follow /system/vendor symlink # Allow all domains to be able to follow /system/vendor and/or
allow domain vendor_file:lnk_file { getattr open read }; # /vendor/odm symlinks.
allow domain vendor_file_type:lnk_file { getattr open read };
# This is required to be able to search & read /vendor/lib64 # This is required to be able to search & read /vendor/lib64
# in order to lookup vendor libraries. The execute permission # in order to lookup vendor libraries. The execute permission
...@@ -914,7 +915,7 @@ full_treble_only(` ...@@ -914,7 +915,7 @@ full_treble_only(`
userdebug_or_eng(`-perfprofd') userdebug_or_eng(`-perfprofd')
-postinstall_dexopt -postinstall_dexopt
-system_server -system_server
} vendor_app_file:{ file lnk_file } r_file_perms; } vendor_app_file:file r_file_perms;
') ')
full_treble_only(` full_treble_only(`
...@@ -941,7 +942,7 @@ full_treble_only(` ...@@ -941,7 +942,7 @@ full_treble_only(`
-system_server -system_server
-webview_zygote -webview_zygote
-zygote -zygote
} vendor_overlay_file:{ file lnk_file } r_file_perms; } vendor_overlay_file:file r_file_perms;
') ')
full_treble_only(` full_treble_only(`
......
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