MAC spoofing failure sometimes does not disable networking
In some of our most constrived test suite scenarios (“MAC address spoofing fails and macchanger returns true” and “MAC address spoofing fails and the module is not removed”) I’ve recently seen failures: the network interface or NetworkManager is left enabled.
I’ve seen this happen with both systemd v240 and v241, and both Linux 4.19.20 and 4.19.28.
In passing, I wonder if we should give MACAddressPolicy=
a try
(systemd.link(5)
), let udev set a random MAC address, and keep only
our code that detects whether the MAC address was successfully spoofed
and if not, switches to “panic mode”.
Attachments
- 01_45_10_MAC_address_spoofing_fails_and_macchanger_returns_true.journal
- 01_45_27_MAC_address_spoofing_fails_and_the_module_is_not_removed.journal
- debug.log
Related issues
- Related to #16620 (closed)
- Blocks #16209
Original created by @intrigeri on 16560 (Redmine)