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: Ifd2c37c58c548aec46a2c46891a1fc4d1f83f9be
Signed-off-by: Rick Chen <rickctchen@google.com>
This commit is contained in:
Rick Chen 2022-11-08 22:41:26 +08:00
parent 632c5dba75
commit bd36256bad

View file

@ -23,3 +23,5 @@ allow chre hal_wifi_ext_hwservice:hwservice_manager find;
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;