Add sepolicy to let fingerprint access power service
Fix the following avc denial:
SELinux : avc: denied { find } for pid=1055 uid=1000 name=android.hardware.power.IPower/default scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:hal_power_service:s0 tclass=service_manager permissive=0
Bug: 185893477
Test: Observe from systrace that the CPU frequency is boosted when
running fingerprint algorithm.
Change-Id: I245058b912ec2af3555154934dbe722b445181a9
This commit is contained in:
committed by
Vineeta Srivastava
parent
61843906c0
commit
7db400b679
@@ -12,3 +12,6 @@ userdebug_or_eng(`
|
||||
get_prop(hal_fingerprint_default, vendor_fingerprint_fake_prop)
|
||||
')
|
||||
add_hwservice(hal_fingerprint_default, hal_fingerprint_ext_hwservice)
|
||||
|
||||
# allow fingerprint to access power hal
|
||||
hal_client_domain(hal_fingerprint_default, hal_power);
|
||||
|
||||
Reference in New Issue
Block a user