Allow CHRE to use EPOLLWAKEUP [DO NOT MERGE]

avc: denied { block_suspend } for comm="UsfTransport" capability=36 scontext=u:r:chre:s0 tcontext=u:r:chre:s0 tclass=capability2 permissive=0

Bug: 238666865
Test: Check no chre avc denied.
Change-Id: Ie936055550c6221beae394c264d664c1e76f946b
Signed-off-by: Rick Chen <rickctchen@google.com>
This commit is contained in:
Rick Chen 2022-11-08 22:44:09 +08:00 committed by TreeHugger Robot
parent 8427e1db8d
commit 8140a50845

View file

@ -22,3 +22,6 @@ allow chre hal_wifi_ext_hwservice:hwservice_manager find;
# Allow CHRE host to talk to stats service
allow chre fwk_stats_service:service_manager find;
binder_call(chre, stats_service_server)
# Allow CHRE to block suspend, which is required to use EPOLLWAKEUP.
allow chre self:global_capability2_class_set block_suspend;