From 40465c19883219645bd04f2ca2c772fa342b9fe8 Mon Sep 17 00:00:00 2001 From: Lei Ju Date: Sat, 17 Feb 2024 09:46:51 -0800 Subject: [PATCH] [gs101] Use common settings for Contexthub HAL The change also labeled files under /data/vendor/chre/ to grant required access. Test: compilation Bug: 248615564 Change-Id: I4db158853764987cf04dc7963ff79c680613f028 --- whitechapel/vendor/google/file.te | 1 + whitechapel/vendor/google/file_contexts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/whitechapel/vendor/google/file.te b/whitechapel/vendor/google/file.te index 9e7f1fab..8c985555 100644 --- a/whitechapel/vendor/google/file.te +++ b/whitechapel/vendor/google/file.te @@ -49,6 +49,7 @@ type sysfs_nanoapp_cmd, sysfs_type, fs_type; type sysfs_fingerprint, sysfs_type, fs_type; # CHRE +type chre_data_file, file_type, data_file_type; type chre_socket, file_type; # BT diff --git a/whitechapel/vendor/google/file_contexts b/whitechapel/vendor/google/file_contexts index 0fb85403..40114760 100644 --- a/whitechapel/vendor/google/file_contexts +++ b/whitechapel/vendor/google/file_contexts @@ -235,9 +235,9 @@ /data/vendor/sensor(/.*)? u:object_r:sensor_vendor_data_file:s0 # Contexthub -/vendor/bin/hw/android\.hardware\.contexthub-service\.generic u:object_r:hal_contexthub_default_exec:s0 /(vendor|system/vendor)/bin/chre u:object_r:chre_exec:s0 /dev/socket/chre u:object_r:chre_socket:s0 +/data/vendor/chre(/.*)? u:object_r:chre_data_file:s0 # Modem logging /vendor/bin/modem_logging_control u:object_r:modem_logging_control_exec:s0