]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/varlink: pass file descriptor of state directory with SetPersistentStorage...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 15 Mar 2024 15:55:10 +0000 (00:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Mar 2024 06:15:32 +0000 (15:15 +0900)
commitbfd8f70cb8e8c273c2d80064d8c2d004d8a5e562
tree3ab75f5c9655820f70170cc44e0a90a1d9d56e5f
parent01285611b0f9ed9e2a0fc3e9e43d9c06b7fa6781
network/varlink: pass file descriptor of state directory with SetPersistentStorage method

The state directory is owned by systemd-networkd-persistent-storage.service,
at least technically. Let's not directly access the storage through the path,
but through the fd.

Addresses https://github.com/systemd/systemd/pull/31746#issuecomment-1993556966.

Suggested-by: Mike Yuan <me@yhndnzj.com>
src/network/networkctl.c
src/network/networkd-manager-varlink.c