]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: add unmanaged interface checks to Link.Renew and Link.ForceRenew Varlink... 40780/head
authornoxiouz <atiurin@proton.me>
Thu, 19 Mar 2026 11:50:26 +0000 (11:50 +0000)
committernoxiouz <atiurin@proton.me>
Thu, 19 Mar 2026 11:50:45 +0000 (11:50 +0000)
commit7d5ec30862b3e9c8c0123520cdb495a0762fe741
tree81fb512f7b67ebf2ed56536aeb7ce1113faa6d43
parent1416d3b69c172d83565c4084eca5b8a1fef4ed3d
network: add unmanaged interface checks to Link.Renew and Link.ForceRenew Varlink methods

The D-Bus counterparts (bus_link_method_renew, bus_link_method_force_renew)
reject calls on unmanaged interfaces with BUS_ERROR_UNMANAGED_INTERFACE,
but the Varlink methods silently succeed. Add the same guard to both
Varlink methods, returning io.systemd.Network.Link.InterfaceUnmanaged,
and declare the error in the IDL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
src/network/networkctl-link-info.c
src/network/networkd-link-varlink.c
src/shared/varlink-io.systemd.Network.Link.c