Skip to content
Snippets Groups Projects
Commit a4567261 authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Allow bluetooth service to access bluetooth directory and add /logs (6/6)

Bug: 31466840
Change-Id: I3984754034349e6c41de6ae9cccbaab95ca5a918
parent f23299c5
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ wakelock_use(bluetooth); ...@@ -10,6 +10,8 @@ wakelock_use(bluetooth);
# Data file accesses. # Data file accesses.
allow bluetooth bluetooth_data_file:dir create_dir_perms; allow bluetooth bluetooth_data_file:dir create_dir_perms;
allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms; allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms;
allow bluetooth bluetooth_logs_data_file:dir rw_dir_perms;
allow bluetooth bluetooth_logs_data_file:file create_file_perms;
# Socket creation under /data/misc/bluedroid. # Socket creation under /data/misc/bluedroid.
type_transition bluetooth bluetooth_data_file:sock_file bluetooth_socket; type_transition bluetooth bluetooth_data_file:sock_file bluetooth_socket;
......
...@@ -141,6 +141,7 @@ type adb_keys_file, file_type, data_file_type; ...@@ -141,6 +141,7 @@ type adb_keys_file, file_type, data_file_type;
type audio_data_file, file_type, data_file_type; type audio_data_file, file_type, data_file_type;
type audioserver_data_file, file_type, data_file_type; type audioserver_data_file, file_type, data_file_type;
type bluetooth_data_file, file_type, data_file_type; type bluetooth_data_file, file_type, data_file_type;
type bluetooth_logs_data_file, file_type, data_file_type;
type bootstat_data_file, file_type, data_file_type; type bootstat_data_file, file_type, data_file_type;
type boottrace_data_file, file_type, data_file_type; type boottrace_data_file, file_type, data_file_type;
type camera_data_file, file_type, data_file_type; type camera_data_file, file_type, data_file_type;
......
...@@ -268,6 +268,7 @@ ...@@ -268,6 +268,7 @@
/data/misc/bootstat(/.*)? u:object_r:bootstat_data_file:s0 /data/misc/bootstat(/.*)? u:object_r:bootstat_data_file:s0
/data/misc/boottrace(/.*)? u:object_r:boottrace_data_file:s0 /data/misc/boottrace(/.*)? u:object_r:boottrace_data_file:s0
/data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0 /data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
/data/misc/bluetooth/logs(/.*)? u:object_r:bluetooth_logs_data_file:s0
/data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0 /data/misc/bluedroid(/.*)? u:object_r:bluetooth_data_file:s0
/data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0 /data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0
/data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0 /data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment