[PATCH 0/2] network: add externally managed profiles
Matthias Kurz <[email protected]> Tue, 28 Apr 2026 13:47:55 +0200
| Newsgroups | dev.linux.lists.iwd |
|---|---|
| Message-ID | <[email protected]> |
Add [Settings].ExternallyManaged for network profiles whose contents are owned by another network manager. This is intended for setups where an external manager writes iwd profile files so iwd can read the connection parameters, but the external manager remains the source of truth for the file contents and secret storage policy. In that case iwd should not rewrite the profile as a side effect of normal network operation. When ExternallyManaged=true is set, iwd still reads the profile and can use it for connection setup, but skips profile writes during normal network operation. Explicit profile removal through KnownNetwork.Forget remains available. This works for handcrafted profiles and for profiles mirrored by another manager such as NetworkManager. Matthias Kurz (2): network: add externally managed profiles doc: document externally managed profiles src/iwd.network.rst | 8 ++++ src/knownnetworks.c | 8 ++++ src/knownnetworks.h | 2 + src/network.c | 67 +++++++++++++++++++------- src/storage.c | 17 ++++++- unit/test-storage.c | 114 +++++++++++++++++++++++++++++++++++++++++++- 6 files changed, 196 insertions(+), 20 deletions(-)