Skip to content

network: add externally managed profiles

Matthias Kurz iwd 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2network: add externally managed profilessrc/knownnetworks.c src/knownnetworks.h src/network.c +2 more+188 -200 replies
2/2doc: document externally managed profilessrc/iwd.network.rst+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] network: add externally managed profiles

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(-)