Allow bthal to access vendor bluetooth folder

Bug: 289055382
Test: enable vendor debug log and check the vendor snoop log contain the
vendor log

Change-Id: I25d7080f89ef1ca5836315097eab3c2916c9f4c0
This commit is contained in:
Patty Huang 2023-06-28 22:18:38 +08:00
parent 7eeda6a018
commit 73a74266f9
3 changed files with 7 additions and 0 deletions

View file

@ -55,6 +55,9 @@ type sysfs_fingerprint, sysfs_type, fs_type;
# CHRE
type chre_socket, file_type;
# BT
type vendor_bt_data_file, file_type, data_file_type;
# IOMMU
type sysfs_iommu, sysfs_type, fs_type;

View file

@ -153,6 +153,7 @@
# data files
/data/vendor/mediadrm(/.*)? u:object_r:mediadrm_vendor_data_file:s0
/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0
# Camera
/vendor/bin/hw/android\.hardware\.camera\.provider@2\.7-service-google u:object_r:hal_camera_default_exec:s0

View file

@ -0,0 +1,3 @@
allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;