fix hal_camera_default service access

10-25 11:52:35.916   437   437 E SELinux : avc:  denied  { find } for pid=711 uid=1000 name=android.frameworks.stats.IStats/default scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:fwk_stats_service:s0 tclass=service_manager permissive=1
Bug: 202906784
Test: boot with no hal_camera_default errors

Change-Id: I0e21cc11808b973c859ddc2ddebc0db81f999d9f
This commit is contained in:
Adam Shih 2021-10-25 11:54:32 +08:00
parent abf31d56d6
commit 5e572d5c72
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +0,0 @@
# b/202906784
dontaudit hal_camera_default edgetpu_vendor_server:fd { use };
dontaudit hal_camera_default hal_radioext_hwservice:hwservice_manager { find };

View file

@ -0,0 +1,7 @@
binder_call(hal_camera_default, edgetpu_vendor_server)
allow hal_camera_default fwk_stats_service:service_manager find;
# Allow camera HAL to query preferred camera frequencies from the radio HAL
# extensions to avoid interference with cellular antennas.
allow hal_camera_default hal_radioext_hwservice:hwservice_manager find;