AnsweredAssumed Answered

SELinux issues on Bluetooth bringup  on imx8mm

Question asked by Sid Saxena on Sep 24, 2019
Latest reply on Oct 2, 2019 by Diego Adrian Cuevas

Bringing with Bluetooth on imx8mm . I am experiencing issues with SELinux. I have tried editing my bluetooth.te and hal_bluetooth_default.te  files but have not got any success. Any help would be appreciated 

 

[ 3763.058786] type=1400 audit(1569346991.160:9124): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
[ 3763.078116] type=1400 audit(1569347000.720:9125): avc: denied { ioctl } for pid=3128 comm="HwBinder:3128_2" path="socket:[143499]" dev="sockfs" ino=143499 ioctlcmd=0x8004 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:r:hal_bluetooth_default:s0 tclass=unix_stream_socket permissive=1
[ 3918.976966] type=1400 audit(1569347000.720:9125): avc: denied { ioctl } for pid=3128 comm="HwBinder:3128_2" path="socket:[143499]" dev="sockfs" ino=143499 ioctlcmd=0x8004 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:r:hal_bluetooth_default:s0 tclass=unix_stream_socket permissive=1
[ 3919.003190] type=1400 audit(1569347156.644:9126): avc: denied { dac_read_search } for pid=3157 comm="Binder:3157_6" capability=2 scontext=u:r:installd:s0 tcontext=u:r:installd:s0 tclass=capability permissive=1
[ 3950.461679] type=1400 audit(1569347156.644:9126): avc: denied { dac_read_search } for pid=3157 comm="Binder:3157_6" capability=2 scontext=u:r:installd:s0 tcontext=u:r:installd:s0 tclass=capability permissive=1
[ 3950.481131] type=1400 audit(1569347188.128:9127): avc: denied { dac_read_search } for pid=6322 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=1
[ 3956.744940] type=1400 audit(1569347188.128:9127): avc: denied { dac_read_search } for pid=6322 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=1
[ 3956.762734] type=1400 audit(1569347194.412:9128): avc: denied { search } for pid=3128 comm="bluetooth@1.0-s" name="bluedroid" dev="mmcblk2p12" ino=393222 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:object_r:bluetooth_data_file:s0 tclass=dir permissive=1
[ 3956.787592] type=1400 audit(1569347194.412:9128): avc: denied { search } for pid=3128 comm="bluetooth@1.0-s" name="bluedroid" dev="mmcblk2p12" ino=393222 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:object_r:bluetooth_data_file:s0 tclass=dir permissive=1
[ 3956.810528] type=1400 audit(1569347194.412:9129): avc: denied { open } for pid=3128 comm="bluetooth@1.0-s" path="/data/misc/bluedroid/bt_fw_version.txt" dev="mmcblk2p12" ino=393558 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:object_r:bluetooth_data_file:s0 tclass=file permissive=1
[ 3957.104573] type=1400 audit(1569347194.412:9129): avc: denied { open } for pid=3128 comm="bluetooth@1.0-s" path="/data/misc/bluedroid/bt_fw_version.txt" dev="mmcblk2p12" ino=393558 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:object_r:bluetooth_data_file:s0 tclass=file permissive=1
[ 3957.130197] type=1400 audit(1569347194.768:9130): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
[ 3966.631860] type=1400 audit(1569347194.768:9130): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
[ 3966.649121] type=1400 audit(1569347204.296:9131): avc: denied { ioctl } for pid=3128 comm="bluetooth@1.0-s" path="socket:[143310]" dev="sockfs" ino=143310 ioctlcmd=0x8004 scontext=u:r:hal_bluetooth_default:s0 tcontext=u:r:hal_bluetooth_default:s0 tclass=unix_stream_socket permissive=1

Outcomes