2018-07-23 20:31:58

by Andrzej Kaczmarek

[permalink] [raw]
Subject: [PATCH BlueZ] tools: Fix btmon-logger service unit

Bluetooth sockets can be only created in initial network namespace thus
btmon-logger will fail to open monitor socket with PrivateNetwork=true
since this sets up new network namespace for created process.
---
tools/bluetooth-logger.service.in | 1 -
1 file changed, 1 deletion(-)

diff --git a/tools/bluetooth-logger.service.in b/tools/bluetooth-logger.service.in
index 210bf59ac..026a2f130 100644
--- a/tools/bluetooth-logger.service.in
+++ b/tools/bluetooth-logger.service.in
@@ -12,7 +12,6 @@ ProtectHome=true
ProtectSystem=full
PrivateTmp=true
PrivateDevices=true
-PrivateNetwork=true

[Install]
WantedBy=bluetooth.target
--
2.18.0



2018-07-27 12:02:46

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH BlueZ] tools: Fix btmon-logger service unit

Hi Andrzej,

On Monday, 23 July 2018 22:31:58 CEST Andrzej Kaczmarek wrote:
> Bluetooth sockets can be only created in initial network namespace thus
> btmon-logger will fail to open monitor socket with PrivateNetwork=true
> since this sets up new network namespace for created process.
> ---
> tools/bluetooth-logger.service.in | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/bluetooth-logger.service.in
> b/tools/bluetooth-logger.service.in index 210bf59ac..026a2f130 100644
> --- a/tools/bluetooth-logger.service.in
> +++ b/tools/bluetooth-logger.service.in
> @@ -12,7 +12,6 @@ ProtectHome=true
> ProtectSystem=full
> PrivateTmp=true
> PrivateDevices=true
> -PrivateNetwork=true
>
> [Install]
> WantedBy=bluetooth.target

Patch applied, thanks.

--
pozdrawiam
Szymon Janc