Merge "Sepolicy:add permission for hal_bluetooth_qti to access debugfs path."

This commit is contained in:
Linux Build Service Account
2017-09-01 13:02:48 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 4 additions and 0 deletions

View File

@@ -495,11 +495,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;