network: add externally managed profiles
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | network: add externally managed profilessrc/ src/ src/ +2 more | +188 | 0 replies | |
| 2/2 | doc: document externally managed profilessrc/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)