summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-10-14 01:07:37 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-10-14 01:07:37 +0000
commit3286f258bebba286d68dc41cf25d75c1ada0426d (patch)
treecaf02d58835d0ad1924f855567e653f5f709cf6e
parent1525445198eaf4bcab9f56d8666f115c90e609d6 (diff)
parent127ca27edc1cc25fad57b326b31d681253a3cc8c (diff)
downloadzuma-sepolicy-android14-qpr1-release.tar.gz
Change-Id: I953a4cc7cb3da49a1c0e59c9a42f923ca79f7a09
-rw-r--r--vendor/file.te1
-rw-r--r--vendor/genfs_contexts3
-rw-r--r--vendor/hal_bluetooth_btlinux.te3
3 files changed, 7 insertions, 0 deletions
diff --git a/vendor/file.te b/vendor/file.te
index a444741..964b8fd 100644
--- a/vendor/file.te
+++ b/vendor/file.te
@@ -39,6 +39,7 @@ type chre_socket, file_type;
# BT
type vendor_bt_data_file, file_type, data_file_type;
+type sysfs_bt_uart, sysfs_type, fs_type;
# Data
type sensor_reg_data_file, file_type, data_file_type;
diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts
index 35a4aff..89c6cf4 100644
--- a/vendor/genfs_contexts
+++ b/vendor/genfs_contexts
@@ -497,6 +497,9 @@ genfscon sysfs /devices/platform/17000000.aoc/control/udfps_get_disp_freq
# Faceauth
genfscon sysfs /sys/kernel/vendor_mm/gcma_heap/trusty:faceauth_rawimage_heap/max_usage_kb u:object_r:sysfs_faceauth_rawimage_heap:s0
+# Bluetooth
+genfscon sysfs /devices/platform/155d0000.serial/uart_dbg u:object_r:sysfs_bt_uart:s0
+
# OTA
genfscon sysfs /devices/platform/13200000.ufs/pixel/boot_lun_enabled u:object_r:sysfs_ota:s0
diff --git a/vendor/hal_bluetooth_btlinux.te b/vendor/hal_bluetooth_btlinux.te
index c496ea0..b2a7529 100644
--- a/vendor/hal_bluetooth_btlinux.te
+++ b/vendor/hal_bluetooth_btlinux.te
@@ -5,5 +5,8 @@ allow hal_bluetooth_btlinux device:dir r_dir_perms;
allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;
+# Allow triggering uart skip suspend
+allow hal_bluetooth_btlinux sysfs_bt_uart:file rw_file_perms;
+
# allow the HAL to call cccdktimesync registered callbacks
binder_call(hal_bluetooth_btlinux, vendor_cccdktimesync_app)