[LEDE-DEV] [PATCH] dropbear: limit max auth tries from 10 to 3
Florian Fainelli
f.fainelli at gmail.com
Sat May 27 10:22:51 PDT 2017
On 05/27/2017 04:11 AM, Kevin Darbyshire-Bryant wrote:
> 10 attempts at login before dropping connection is too many, 3 tries and
> you're out.
This sounds like something we may want to be configured via UCI instead
of at built time. The default value you suggest is sensible though.
>
> Signed-off-by: Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk>
> ---
> package/network/services/dropbear/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/network/services/dropbear/Makefile b/package/network/services/dropbear/Makefile
> index 1e2588d..fa7fb0f 100644
> --- a/package/network/services/dropbear/Makefile
> +++ b/package/network/services/dropbear/Makefile
> @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
>
> PKG_NAME:=dropbear
> PKG_VERSION:=2017.75
> -PKG_RELEASE:=1
> +PKG_RELEASE:=2
>
> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
> PKG_SOURCE_URL:= \
> @@ -77,7 +77,7 @@ CONFIGURE_ARGS += \
> --disable-zlib \
> --enable-bundled-libtom
>
> -TARGET_CFLAGS += -DARGTYPE=3 -ffunction-sections -fdata-sections
> +TARGET_CFLAGS += -DARGTYPE=3 -DMAX_AUTH_TRIES=3 -ffunction-sections -fdata-sections
> TARGET_LDFLAGS += -Wl,--gc-sections
>
> define Build/Configure
>
--
Florian
More information about the Lede-dev
mailing list