mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Add context hub HAL implementation to the build, with new sepolicy files
that resolve these denials:
type=1400 audit(4779207.059:418): avc: denied { write } for pid=809
comm="android.hardwar" name="chre" dev="tmpfs" ino=32491
scontext=u:r:hal_contexthub_default:s0
tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1
type=1400 audit(5568590.159:45): avc: denied { connectto } for pid=734
comm="android.hardwar" path="/dev/socket/chre"
scontext=u:r:hal_contexthub_default:s0 tcontext=u:r:chre:s0
tclass=unix_stream_socket permissive=1
Bug: 35808469
Test: confirm HAL gets loaded, VTS passes, no denials from
hal_contexthub_default
Change-Id: I1882571c0541de78242755cd4b3b1548365a388b
4 lines
184 B
Plaintext
4 lines
184 B
Plaintext
# Allow context hub HAL to communicate with daemon via socket
|
|
allow hal_contexthub_default chre:unix_stream_socket connectto;
|
|
allow hal_contexthub_default chre_socket:sock_file write;
|