Skip to content
Snippets Groups Projects
Commit 9819a6cb authored by Nick Kralevich's avatar Nick Kralevich
Browse files

bluetooth: allow sending bugreports via bluetooth

Bluetooth can receive bugreport data for beaming to another device.
This comes across as an open file descriptor. Allow bluetooth access
to bugreports.

Addresses the following denial:

  avc: denied { read } for path="/data/data/com.android.shell/files/bugreports/bugreport-2014-12-19-15-35-32.txt" dev="dm-0" ino=662738 scontext=u:r:bluetooth:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0

Change-Id: I7be2ce2e0e48323c1e8f932be17b434b89daf085
parent 5432e7ce
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,11 @@ allow bluetooth bluetooth_service:service_manager find; ...@@ -53,6 +53,11 @@ allow bluetooth bluetooth_service:service_manager find;
allow bluetooth radio_service:service_manager find; allow bluetooth radio_service:service_manager find;
allow bluetooth system_server_service:service_manager find; allow bluetooth system_server_service:service_manager find;
# already open bugreport file descriptors may be shared with
# the bluetooth process, from a file in
# /data/data/com.android.shell/files/bugreports/bugreport-*.
allow bluetooth shell_data_file:file read;
### ###
### Neverallow rules ### Neverallow rules
### ###
......
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