allow hal_bluetooth_btlinux write sysfs file am: 127ca27edc
am: a49aa2bdf1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma-sepolicy/+/24947936 Change-Id: I52e9eb48b5e73a6f388a3fb446d1e402bdca4468 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
5883c27036
3 changed files with 7 additions and 0 deletions
1
vendor/file.te
vendored
1
vendor/file.te
vendored
|
@ -36,6 +36,7 @@ type chre_socket, file_type;
|
||||||
|
|
||||||
# BT
|
# BT
|
||||||
type vendor_bt_data_file, file_type, data_file_type;
|
type vendor_bt_data_file, file_type, data_file_type;
|
||||||
|
type sysfs_bt_uart, sysfs_type, fs_type;
|
||||||
|
|
||||||
# Data
|
# Data
|
||||||
type sensor_reg_data_file, file_type, data_file_type;
|
type sensor_reg_data_file, file_type, data_file_type;
|
||||||
|
|
3
vendor/genfs_contexts
vendored
3
vendor/genfs_contexts
vendored
|
@ -536,5 +536,8 @@ genfscon sysfs /devices/platform/17000000.aoc/control/udfps_get_disp_freq
|
||||||
# Faceauth
|
# Faceauth
|
||||||
genfscon sysfs /sys/kernel/vendor_mm/gcma_heap/trusty:faceauth_rawimage_heap/max_usage_kb u:object_r:sysfs_faceauth_rawimage_heap:s0
|
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
|
# OTA
|
||||||
genfscon sysfs /devices/platform/13200000.ufs/pixel/boot_lun_enabled u:object_r:sysfs_ota:s0
|
genfscon sysfs /devices/platform/13200000.ufs/pixel/boot_lun_enabled u:object_r:sysfs_ota:s0
|
||||||
|
|
3
vendor/hal_bluetooth_btlinux.te
vendored
3
vendor/hal_bluetooth_btlinux.te
vendored
|
@ -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:dir rw_dir_perms;
|
||||||
allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_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
|
# 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