allow bthal to access vendor bluetooth folder
Bug: 240636731 Test: enable vendor btsnoop property and check the vendor snoop log Change-Id: Ib7c36e7398bdbe7abc2f3b2dba684f95a4ce90a8
This commit is contained in:
parent
4cd8d2fef9
commit
940b51e1e4
3 changed files with 8 additions and 0 deletions
3
vendor/file.te
vendored
3
vendor/file.te
vendored
|
@ -31,6 +31,9 @@ type sysfs_wlc, sysfs_type, fs_type;
|
||||||
# CHRE
|
# CHRE
|
||||||
type chre_socket, file_type;
|
type chre_socket, file_type;
|
||||||
|
|
||||||
|
# BT
|
||||||
|
type vendor_bt_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
# Data
|
# Data
|
||||||
type sensor_reg_data_file, file_type, data_file_type;
|
type sensor_reg_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
|
|
2
vendor/file_contexts
vendored
2
vendor/file_contexts
vendored
|
@ -34,6 +34,8 @@
|
||||||
# Vendor libraries
|
# Vendor libraries
|
||||||
/vendor/lib(64)?/libgxp\.so u:object_r:same_process_hal_file:s0
|
/vendor/lib(64)?/libgxp\.so u:object_r:same_process_hal_file:s0
|
||||||
|
|
||||||
|
# Vendor
|
||||||
|
/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0
|
||||||
|
|
||||||
# persist
|
# persist
|
||||||
/mnt/vendor/persist/camera(/.*)? u:object_r:persist_camera_file:s0
|
/mnt/vendor/persist/camera(/.*)? u:object_r:persist_camera_file:s0
|
||||||
|
|
3
vendor/hal_bluetooth_btlinux.te
vendored
3
vendor/hal_bluetooth_btlinux.te
vendored
|
@ -2,5 +2,8 @@
|
||||||
allow hal_bluetooth_btlinux aoc_device:chr_file rw_file_perms;
|
allow hal_bluetooth_btlinux aoc_device:chr_file rw_file_perms;
|
||||||
allow hal_bluetooth_btlinux device:dir r_dir_perms;
|
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 the HAL to call cccdktimesync registered callbacks
|
# allow the HAL to call cccdktimesync registered callbacks
|
||||||
binder_call(hal_bluetooth_btlinux, vendor_cccdktimesync_app)
|
binder_call(hal_bluetooth_btlinux, vendor_cccdktimesync_app)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue