Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    ba12da95
    Allow bluetooth access to the tun device. · ba12da95
    Nick Kralevich authored
    Bluetooth uses the tun device for tethering. Allow access.
    
      STEPS TO REPRODUCE:
      0. Have two devices to test on, say Device A and Device B
      1. On Device A, Go to settings ->Bluetooth .
      2. Turn on the Bluetooth .
      3. Pair it with device B
      4. Tap on the paired device
    
      OBSERVED RESULTS:
      -Bluetooth share crash is observed with "Bluetooth share has stopped"
      error message
      -Unable to use Bluetooth tethering due to this issue
    
      EXPECTED RESULTS:
      No crash and Bluetooth devices should be able to connect for tethering
    
    Addresses the following denial:
    
    com.android.bluetooth: type=1400 audit(0.0:131): avc: denied { open }
    for comm=425420536572766963652043616C6C path="/dev/tun" dev="tmpfs"
    ino=12340 scontext=u:r:bluetooth:s0 tcontext=u:object_r:tun_device:s0
    tclass=chr_file permissive=0
    
    Bug: 27372573
    
    (cherry picked from commit 9a1347ee)
    
    Change-Id: Ibd16e48c09fe80ebb4f3779214de3b4806c12497
    ba12da95
    History
    Allow bluetooth access to the tun device.
    Nick Kralevich authored
    Bluetooth uses the tun device for tethering. Allow access.
    
      STEPS TO REPRODUCE:
      0. Have two devices to test on, say Device A and Device B
      1. On Device A, Go to settings ->Bluetooth .
      2. Turn on the Bluetooth .
      3. Pair it with device B
      4. Tap on the paired device
    
      OBSERVED RESULTS:
      -Bluetooth share crash is observed with "Bluetooth share has stopped"
      error message
      -Unable to use Bluetooth tethering due to this issue
    
      EXPECTED RESULTS:
      No crash and Bluetooth devices should be able to connect for tethering
    
    Addresses the following denial:
    
    com.android.bluetooth: type=1400 audit(0.0:131): avc: denied { open }
    for comm=425420536572766963652043616C6C path="/dev/tun" dev="tmpfs"
    ino=12340 scontext=u:r:bluetooth:s0 tcontext=u:object_r:tun_device:s0
    tclass=chr_file permissive=0
    
    Bug: 27372573
    
    (cherry picked from commit 9a1347ee)
    
    Change-Id: Ibd16e48c09fe80ebb4f3779214de3b4806c12497