#1029788 connman breaks systemd/udev network interface name policy

Package:
connman
Source:
connman
Description:
Intel Connection Manager daemon
Submitter:
Pascal Hambourg
Date:
2024-02-27 09:39:03 UTC
Severity:
normal
#1029788#5
Date:
2023-01-27 17:59:40 UTC
From:
To:
Dear maintainer,

When connman is running, new interfaces using enabled technologies are
not renamed by systemd/udev and keep the original names assigned by the
kernel despite the systemd name policy (systemd.link).

Network interfaces added at boot time before connman starts are renamed
as expected.

Network interfaces added while connman is not running are renamed as
expected.

If a technology is disabled in connman, network interfaces using this
technology added while connman is running are renamed as expected.

The same happens also with connman version 1.41-2 in bookworm, although
the output of the following commands is slightly different.

udevadm monitor --subsystems=net
udevadm info /sys/class/net/<name>

Not sure if this is a bug in connman or systemd/udev. Maybe it happens
because connman sets the new interface up before systemd/udev tries to
rename it.

#1029788#12
Date:
2024-02-27 09:24:12 UTC
From:
To:
After migrating to bookworm, I confirm the issue is still present.

Workaround: append ",eth,wlan" to NetworkInterfaceBlacklist in
/etc/connman/main.conf so that connman ignores ethernet and wireless
interfaces until they are renamed, assuming new names do not start with
"eth" or "wlan" (default ones do not).