diff --git a/dex2oat.te b/dex2oat.te index c18f496b5ee35c27ed18e07acefcf6f5cb7c4889..8c80a32a87a2872cf99021038e5eaca602aef1be 100644 --- a/dex2oat.te +++ b/dex2oat.te @@ -29,7 +29,7 @@ allow dex2oat user_profile_data_file:file { getattr read lock }; # Allow dex2oat to use file descriptors from otapreopt. allow dex2oat postinstall_dexopt:fd use; -allow dex2oat postinstall_file:dir getattr; +allow dex2oat postinstall_file:dir { getattr search }; # Allow dex2oat access to files in /data/ota. allow dex2oat ota_data_file:dir ra_dir_perms; diff --git a/postinstall_dexopt.te b/postinstall_dexopt.te index 3d00c310952cf754d526972cd4f2447d07d7e8f2..2335dcb0d119bd9d40378927f3c8a71fabaab31a 100644 --- a/postinstall_dexopt.te +++ b/postinstall_dexopt.te @@ -8,7 +8,7 @@ type postinstall_dexopt, domain; # init_daemon_domain(otapreopt) allow postinstall_dexopt self:capability { chown dac_override fowner setgid setuid }; -allow postinstall_dexopt postinstall_file:dir getattr; +allow postinstall_dexopt postinstall_file:dir { getattr search }; allow postinstall_dexopt proc:file { getattr open read }; allow postinstall_dexopt tmpfs:file read; @@ -53,3 +53,5 @@ allow postinstall_dexopt installd:process sigchld; # Allow otapreopt to use file descriptors from otapreopt_chroot. # TODO: Probably we can actually close file descriptors... allow postinstall_dexopt otapreopt_chroot:fd use; + +allow postinstall_dexopt cpuctl_device:dir search;