Update common chre sepolicy for socket connection

With multiclient HAL, the socket server domain changes from chre to
hal_contexthub_default.

Bug: 248615564
Test: updated the sepolicies and observed that avc violation logs
      disappears.
Change-Id: Ic5717cee6d2714bec49814a1b779266de79dc4f3
This commit is contained in:
Lei Ju 2023-12-26 17:25:29 -08:00
parent e40fe7223e
commit 35e5021597
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,6 @@
# Allow context hub HAL to communicate with daemon via socket
unix_socket_connect(hal_contexthub_default, chre, chre)
#
# Context hub multiclient HAL common selinux policies
#
# Permit communication with AoC
allow hal_contexthub_default aoc_device:chr_file rw_file_perms;