Merge "allow bthal to access vendor bluetooth folder" into udc-d1-dev

This commit is contained in:
Joner Lin 2023-04-13 13:57:32 +00:00 committed by Android (Google) Code Review
commit edd47032af
3 changed files with 8 additions and 0 deletions

3
vendor/file.te vendored
View file

@ -30,6 +30,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;

View file

@ -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

View file

@ -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)