Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH v2] dbus: Remove 'at_console', add 'netdev' settings
@ 2022-01-26 20:01 Diederik de Haas
  0 siblings, 0 replies; 2+ messages in thread
From: Diederik de Haas @ 2022-01-26 20:01 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

The 'at_console' D-Bus policy setting has been deprecated for more then
10 years and could be ignored at any time in the future. Moreover, while
the intend was to allow locally logged on users to interact with iwd, it
didn't actually do that.
More info at https://www.spinics.net/lists/linux-bluetooth/msg75267.html
and https://gitlab.freedesktop.org/dbus/dbus/-/issues/52
Therefor remove the 'at_console' setting block.

On Debian (based) systems, there is a standard defined group which is
allowed to manage network interfaces, and that is the 'netdev' group.
So add a D-Bus setting block to grant the 'netdev' group that access.
---
Changes since v1:
- Added 'dbus' prefix to primary commit message and shortened it to
  less then 50 chars
- Reformatted secondary commit message to max 72 chars and fixed a
  small typo (_ -> ')

 src/iwd-dbus.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iwd-dbus.conf b/src/iwd-dbus.conf
index 6b07ba9e..257b0b14 100644
--- a/src/iwd-dbus.conf
+++ b/src/iwd-dbus.conf
@@ -18,7 +18,7 @@
     <allow send_interface="net.connman.iwd.Agent"/>
   </policy>
 
-  <policy at_console="true">
+  <policy group="netdev">
     <allow send_destination="net.connman.iwd"/>
     <allow send_interface="net.connman.iwd.Agent"/>
   </policy>
-- 
2.34.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* Re: [PATCH v2] dbus: Remove 'at_console', add 'netdev' settings
@ 2022-01-26 20:06 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-01-26 20:06 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

Hi Diederik,

On 1/26/22 14:01, Diederik de Haas wrote:
> The 'at_console' D-Bus policy setting has been deprecated for more then
> 10 years and could be ignored at any time in the future. Moreover, while
> the intend was to allow locally logged on users to interact with iwd, it
> didn't actually do that.
> More info at https://www.spinics.net/lists/linux-bluetooth/msg75267.html
> and https://gitlab.freedesktop.org/dbus/dbus/-/issues/52
> Therefor remove the 'at_console' setting block.
> 
> On Debian (based) systems, there is a standard defined group which is
> allowed to manage network interfaces, and that is the 'netdev' group.
> So add a D-Bus setting block to grant the 'netdev' group that access.
> ---
> Changes since v1:
> - Added 'dbus' prefix to primary commit message and shortened it to
>    less then 50 chars
> - Reformatted secondary commit message to max 72 chars and fixed a
>    small typo (_ -> ')
> 
>   src/iwd-dbus.conf | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-26 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26 20:01 [PATCH v2] dbus: Remove 'at_console', add 'netdev' settings Diederik de Haas
  -- strict thread matches above, loose matches on Subject: below --
2022-01-26 20:06 Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox