Add CHRE SELinux Permissions for Twoshay [Zuma Pro]

Adds permissions for chre socket to SELinux policy.
Used for the Wallaby nanoapp.

Bug: b/324278826
Test: Manually tested on zuma pro devices
Change-Id: Ied113002ec0650607f657cc47d183635916ae83e
This commit is contained in:
Imo Richard Umoren 2024-02-07 20:04:20 +00:00
parent 01658d880d
commit 52fe3a2703

10
vendor/twoshay.te vendored Normal file
View file

@ -0,0 +1,10 @@
# Allow ITouchContextService callback
binder_call(twoshay, systemui_app)
binder_call(twoshay, hal_radioext_default)
# b/324278826
unix_socket_connect(twoshay, chre, chre)
# TODO(b/248615564): Remove above rule after CHRE multiclient HAL is launched.
unix_socket_connect(twoshay, chre, hal_contexthub_default)
allow twoshay self:capability2 block_suspend;