FS#76504 - [iwd] dbus policy causes unnecessary logspam
Attached to Project:
Community Packages
Opened by Ronan Pigott (Brocellous) - Wednesday, 09 November 2022, 19:37 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:10 GMT
Opened by Ronan Pigott (Brocellous) - Wednesday, 09 November 2022, 19:37 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:10 GMT
|
Details
Description: iwd has some unnecessary logspam for group
netdev
iwd ships /usr/share/dbus-1/system.d/iwd-dbus.conf, with policy <policy group="netdev"> <allow send_destination="net.connman.iwd"/> </policy> Arch linux doesn't use this device group name, so this creates some unnecessary logspam: $ journalctl --no-hostname -b -p4 -g netdev Nov 09 11:05:57 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:05:57 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:05:57 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:05:57 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:05:57 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:05:57 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:06:02 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file Nov 09 11:06:02 dbus-daemon[661]: Unknown group "netdev" in message bus configuration file I think we should either remove this clause or introduce a sysusers.d entry to create this system group. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:10 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/iwd/issues/2
Saturday, 25 November 2023, 20:10 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/iwd/issues/2
https://wiki.archlinux.org/title/Iwd#Usage
I certainly wouldn't mind if the clause was just removed, but if we want to keep it I think the group should exist.
FS#74646(it says "this group is created by conman" but I don't see that anywhere unless I'm missing something...)Do you still get the log spam if you're part of the wheel group?
The messages occur whenever the rules are re-parsed. Most commonly this is when polkitd reloads the rules as it automatically watches those directories for changes. I just did an upgrade and got another dozen lines of this as systemd upgraded.
[1] https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/src/iwd-dbus.conf?id=010b0e27
Other projects seem to provide console users access either with TAG+="uaccess" for devices or polkit actions with allow_active=yes policy. A "netdev" system group for this purpose is an anachronism imo, so I agree it should be removed.
Arch users that don't wish to belong to the wheel group for some reason but still want unprivileged access to iwd's functions can either
1. Get most the benefit from NetworkManager on iwd backend, as it has its own polkit layer. Or
2. Add the netdev group back into the policy in /usr/local/share
which doesn't seem like too much of a burden.
Maybe we should change iwd following this and fix the Debian specific group here to network as well?