5 Commits

Author SHA1 Message Date
Lei Ju
7e89a679d9 Allow sensor hal to connect to CHRE HAL
These policies are required to let DropDetect and IpHeath communicate
with CHRE HAL directly after CHRE multiclient HAL is enabled.

Bug: 324316275
Test: Trigger drop detection and observed corresponding logs
  are generated.
Change-Id: Icc087b59ff594224d7e637212558e68fb3f86437
2024-02-07 15:36:08 -08:00
Lei Ju
a6c741e3a4 Introduce a property for multiclient HAL
Test: set the property in .rc file and run adb shell getprop to
      verify the property is set.
Bug: 248615564
Change-Id: I18a52c2a29df2cc5bad73d49e39c4e6ee1381106
2024-01-17 18:00:11 -08:00
Lei Ju
35e5021597 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
2023-12-26 23:29:58 -08:00
Lei Ju
403baea11f Update the common sepolicy for file access
Bug: 248615564
Test: load sepolicy onto pixel device and verify the output using
      audit2allow
Change-Id: I295cefa3637298fba3d266f5f95f83cb7329bd02
2023-12-20 16:36:18 -08:00
Lei Ju
f7f93daaf3 Set up common sepolicy for CHRE
Bug: 248615564
Test: compilation by make sepolicy
Change-Id: I0bde64d26d0c4451343f6f7032aecc20b275feaa
2023-12-19 10:32:04 -08:00