Sepolicy:add permission for hal_bluetooth_qti to access debugfs path.

hal_bluetooth_qti need access to ipc_logginglogging
folder on debugfs adding allow rules .

Change-Id: I9e75b8e1bf4f427fab0e27c3d3bd2aebbe7ae1fa
CRs-Fixed: 2100550
This commit is contained in:
Niraj kumar Mishra
2017-08-28 11:33:13 +05:30
parent 53a86abc82
commit 5c4c3ae2fe
2 changed files with 4 additions and 0 deletions

View File

@@ -488,11 +488,13 @@
/data/vendor/qdmastats(/.*)? u:object_r:qdma_data_file:s0
/data/vendor/qdma(/.*)? u:object_r:qdma_data_file:s0
/data/vendor/ramdump/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
/data/vendor/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
/data/vendor/ramdump/bluetooth/logs(/.*)? u:object_r:bluetooth_logs_data_file:s0
/data/vendor/vpp(/.*)? u:object_r:vpp_data_file:s0
/data/vendor/camera(/.*)? u:object_r:vendor_camera_data_file:s0
/data/vendor/wifi/wigig_hostapd(/.*)? u:object_r:wigig_hostapd_socket:s0
/data/vendor/media(/.*)? u:object_r:media_data_file:s0
/sys/kernel/debug/ipc_logging(/.*)? u:object_r:qti_debugfs:s0
###################################
# persist files

View File

@@ -34,6 +34,7 @@ init_daemon_domain(hal_bluetooth_qti)
# Logging for backward compatibility
allow hal_bluetooth_qti bluetooth_data_file:dir ra_dir_perms;
allow hal_bluetooth_qti bluetooth_data_file:file create_file_perms;
r_dir_file(hal_bluetooth_qti, firmware_file)
allow hal_bluetooth {
serial_device
@@ -62,6 +63,7 @@ userdebug_or_eng(`
userdebug_or_eng(`
allow hal_bluetooth proc_sysrq:file w_file_perms;
allow hal_bluetooth_qti qti_debugfs:file r_file_perms;
allow hal_bluetooth_qti qti_debugfs:dir rw_dir_perms;
')
allow system_app hal_bluetooth_hwservice :hwservice_manager find;