Skip to contentSkip to conversation

Debugging bluetoothd, dbus and selinux help?

DISCUSSION Don Zickus 2 participants 3 messages Jun 15, 2016 – Jun 17, 2016 Bluetooth drivers

lore
Share & tools
lore

Don Zickus

author
#0 lore raw

Hi,

I am trying to debug why bluetoothd decides to disconnect from the d-bus on the host, when the client does an object push to an obex agent on the host.

When I set selinux to permissive mode ('setenforce 0'), things work fine (ie the object push goes through).

I tried searching /var/log/audit/audit.log, journalctl and dbus-monitor for clues (on the host) and can't find anything obvious.

Does anyone have any tips on how to find what security policy might be interfering with my test?

Cheers,
Don

#1 lore raw

Hi,

Quoted 5 lines · On Wednesday 15 June 2016 13:00:25 Don Zickus wrote:

Hi,

I am trying to debug why bluetoothd decides to disconnect from the d-bus on the host, when the client does an object push to an obex agent on the host.

Quoted 9 lines

When I set selinux to permissive mode ('setenforce 0'), things work fine (ie the object push goes through).

I tried searching /var/log/audit/audit.log, journalctl and dbus-monitor for clues (on the host) and can't find anything obvious.

Does anyone have any tips on how to find what security policy might be interfering with my test?

To me it looks like FD passing on D-Bus is being blocked by SELinux.

Signature · 2 lines
pozdrawiam
Szymon Janc
author
#2 lore raw
Quoted 11 lines · Szymon Janc

Hi,

Quoted 8 lines · On Wednesday 15 June 2016 13:00:25 Don Zickus wrote:

Hi,

I am trying to debug why bluetoothd decides to disconnect from the d-bus on the host, when the client does an object push to an obex agent on the host.

When I set selinux to permissive mode ('setenforce 0'), things work fine (ie the object push goes through).

Quoted 8 lines
Quoted 6 lines

I tried searching /var/log/audit/audit.log, journalctl and dbus-monitor for clues (on the host) and can't find anything obvious.

Does anyone have any tips on how to find what security policy might be interfering with my test?

To me it looks like FD passing on D-Bus is being blocked by SELinux.

Hi Szymon,

Thanks for the tip! Is there a way I can verify that. I am scratching my head for the right log file or monitor probe. Or better yet, the right file to modify to fix that permission problem..

Cheers,
Don