WiFi stops working if managed with NetworkManager after migration to unprivileged guix daemon

  • Open
  • quality assurance status badge
Details
3 participants
  • Gabriel Santos
  • Ludovic Courtès
  • Rodion Goritskov
Owner
unassigned
Submitted by
Rodion Goritskov
Severity
important

Debbugs page

R
R
Rodion Goritskov wrote on 24 Apr 12:03 -0700
(address . bug-guix@gnu.org)
871pth756t.fsf@bumblebee-old.mail-host-address-is-not-set
Hi!

I tried to opt-in into using guix daemon in unprivileged mode using:

Toggle quote (5 lines)
> (modify-services %base-services
> (guix-service-type config =>
> (guix-configuration (inherit config)
> (privileged? #f))))

After reconfiguration (and finish of the task changing owner of store to
guix-daemon), I rebooted system to found out that WiFi not working anymore.

I use NetworkManager for the network configuration, with pretty much the
default configuration:

Toggle quote (6 lines)
> (service wpa-supplicant-service-type)
> (service network-manager-service-type
> (network-manager-configuration (vpn-plugins (list
> network-manager-openvpn))))


In logs I can see the following errors:

Toggle quote (9 lines)
> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn> [1745483655.8534] plugin: skip invalid file /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-ovs.so: file has invalid owner (should be root)
> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn> [1745483655.8535] plugin: skip invalid file /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-bluetooth.so: file has invalid owner (should be root)
> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn> [1745483655.8536] plugin: skip invalid file /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-adsl.so: file has invalid owner (should be root)
> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn> [1745483655.8536] plugin: skip invalid file /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-wifi.so: file has invalid owner (should be root)
> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn>
> [1745483655.8537] plugin: skip invalid file
> /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-wwan.so:
> file has invalid owner (should be root)

Looks like NetworkManager doesn't like a non-root owner of plugins.

After reconfiguration back to the priveleged guix-service-type,
NetworkManager is back to normal:

Toggle quote (7 lines)
> 2025-04-24 11:40:49 localhost NetworkManager[833]: <info> [1745487649.2569] Loaded device plugin: NMOvsFactory (/gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-ovs.so)
> 2025-04-24 11:40:49 localhost NetworkManager[833]: <info> [1745487649.3357] Loaded device plugin: NMBluezManager (/gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-bluetooth.so)
> 2025-04-24 11:40:49 localhost NetworkManager[833]: <info> [1745487649.3373] Loaded device plugin: NMAtmManager (/gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-adsl.so)
> 2025-04-24 11:40:49 localhost NetworkManager[833]: <info> [1745487649.3414] Loaded device plugin: NMWifiFactory (/gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-wifi.so)
> 2025-04-24 11:40:49 localhost NetworkManager[833]: <info>
> [1745487649.3427] Loaded device plugin: NMWwanFactory
> (/gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-wwan.so)
L
L
Ludovic Courtès wrote on 5 May 06:02 -0700
(name . Rodion Goritskov)(address . rodion@goritskov.com)(address . 78047@debbugs.gnu.org)
87y0vb43dg.fsf@gnu.org
Hi,

Rodion Goritskov <rodion@goritskov.com> writes:

Toggle quote (25 lines)
> In logs I can see the following errors:
>
>> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn>
>> [1745483655.8534] plugin: skip invalid file
>> /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-ovs.so:
>> file has invalid owner (should be root)
>> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn>
>> [1745483655.8535] plugin: skip invalid file
>> /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-bluetooth.so:
>> file has invalid owner (should be root)
>> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn>
>> [1745483655.8536] plugin: skip invalid file
>> /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-adsl.so:
>> file has invalid owner (should be root)
>> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn>
>> [1745483655.8536] plugin: skip invalid file
>> /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-wifi.so:
>> file has invalid owner (should be root)
>> 2025-04-24 10:34:15 localhost NetworkManager[852]: <warn>
>> [1745483655.8537] plugin: skip invalid file
>> /gnu/store/agadky1p0ba367avf524sh5wmcdxcxb1-network-manager-1.52.0/lib/NetworkManager/1.52.0/libnm-device-plugin-wwan.so:
>> file has invalid owner (should be root)
>
> Looks like NetworkManager doesn't like a non-root owner of plugins.

I think we’ll have to add an activation snippet in the ‘network-manager’
service that copies those files elsewhere with appropriate ownership.

Or we could patch NetworkManager. (Maybe wiser.)

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote 4 days ago
control message for bug #78047
(address . control@debbugs.gnu.org)
874ixukkdv.fsf@gnu.org
severity 78047 important
quit
G
G
Gabriel Santos wrote 4 days ago
WiFi stops working if managed with NetworkMana ger after migration to unprivileged guix daemon
(address . 78047@debbugs.gnu.org)
779FC18B-5BCE-43B7-BD5C-AAE09FC62DA6@disroot.org
Thanks for reporting this, I also was impacted by the same
issue. I'll just do a privileged reinstall.

--
Gabriel Santos
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 78047@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 78047
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch