From 38d2a5a7043461930c414824ed48bcb6a8117bc8 Mon Sep 17 00:00:00 2001 From: Christian Dresel Date: Fri, 10 Jan 2020 12:57:13 +0100 Subject: [PATCH] fastd: make secret key update-safe To use a whitelist easily, it is necessary to make the fastd key update-safe. This patch saves the key to uci fff config and recovers it for use after a firmware upgrade. Signed-off-by: Christian Dresel Reviewed-by: lemmi Reviewed-by: Robert Langhammer Reviewed-by: Adrian Schmutzler [bump PKG_RELEASE, rephrase commit message] Signed-off-by: Adrian Schmutzler --- src/packages/fff/fff-fastd/Makefile | 5 +++-- .../fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/packages/fff/fff-fastd/Makefile b/src/packages/fff/fff-fastd/Makefile index 513775da..ab0fe222 100644 --- a/src/packages/fff/fff-fastd/Makefile +++ b/src/packages/fff/fff-fastd/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fff-fastd -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) @@ -17,7 +17,8 @@ define Package/$(PKG_NAME) +@FASTD_ENABLE_CIPHER_NULL \ +@FASTD_WITH_STATUS_SOCKET \ +fastd \ - +fff-random + +fff-random \ + +fff-config endef define Package/$(PKG_NAME)/description diff --git a/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd b/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd index d53eb434..08ceecb6 100644 --- a/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd +++ b/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd @@ -15,9 +15,17 @@ uci batch < /etc/fastd/fff/up.sh